Git Product home page Git Product logo

Comments (7)

mickhansen avatar mickhansen commented on August 29, 2024

What's the stack trace for that error?

from graphql-sequelize.

kevflynn avatar kevflynn commented on August 29, 2024

TypeError: Right-hand side of 'instanceof' is not an object
at Object.toGraphQL (/Users/flynn/Documents/labs/communityroot/crootapi/node_modules/graphql-sequelize/lib/typeMapper.js:85:331)
at /Users/flynn/Documents/labs/communityroot/crootapi/node_modules/graphql-sequelize/lib/defaultArgs.js:24:27
at Array.forEach ()
at module.exports (/Users/flynn/Documents/labs/communityroot/crootapi/node_modules/graphql-sequelize/lib/defaultArgs.js:21:10)
at fields (/Users/flynn/Documents/labs/communityroot/crootapi/src/graphql/schema/index.js:39:20)
at resolveThunk (/Users/flynn/Documents/labs/communityroot/crootapi/node_modules/graphql/type/definition.js:438:40)
at defineFieldMap (/Users/flynn/Documents/labs/communityroot/crootapi/node_modules/graphql/type/definition.js:625:18)
at GraphQLObjectType.getFields (/Users/flynn/Documents/labs/communityroot/crootapi/node_modules/graphql/type/definition.js:579:27)
at typeMapReducer (/Users/flynn/Documents/labs/communityroot/crootapi/node_modules/graphql/type/schema.js:280:78)
at Array.reduce ()
at new GraphQLSchema (/Users/flynn/Documents/labs/communityroot/crootapi/node_modules/graphql/type/schema.js:145:28)
at Object. (/Users/flynn/Documents/labs/communityroot/crootapi/src/graphql/schema/index.js:245:16)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Module._compile (/Users/flynn/Documents/labs/communityroot/crootapi/node_modules/pirates/lib/index.js:99:24)
at Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Object.newLoader [as .js] (/Users/flynn/Documents/labs/communityroot/crootapi/node_modules/pirates/lib/index.js:104:7)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:94:18)
at Object. (/Users/flynn/Documents/labs/communityroot/crootapi/src/server.js:8:1)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
[nodemon] app crashed - waiting for file changes before starting...

from graphql-sequelize.

kevflynn avatar kevflynn commented on August 29, 2024

If i remove that last
|| sequelizeType instanceof CITEXT

it works fine

from graphql-sequelize.

mickhansen avatar mickhansen commented on August 29, 2024

What version of Sequelize are you using?

from graphql-sequelize.

mickhansen avatar mickhansen commented on August 29, 2024

CITEXT must be unavailable in some cases, the line should be ammended to (CITEXT !== undefined && sequelizeType instanceof CITEXT)

from graphql-sequelize.

kevflynn avatar kevflynn commented on August 29, 2024
"sequelize": "^4.42.0",

yeah - looks like it was added in v5 of sequelize

from graphql-sequelize.

stale avatar stale commented on August 29, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from graphql-sequelize.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.