Closed kevflynn closed 2 years ago
What's the stack trace for that error?
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 (
If i remove that last
|| sequelizeType instanceof CITEXT
it works fine
What version of Sequelize are you using?
CITEXT
must be unavailable in some cases, the line should be ammended to (CITEXT !== undefined && sequelizeType instanceof CITEXT)
"sequelize": "^4.42.0",
yeah - looks like it was added in v5 of sequelize
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.
I'm assuming it's because I don't have something globally installed - but I'm getting the
Right-hand side of 'instanceof' is not an object
Error for CITEXT. Do I need to install or update a sep. package?