-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error/syntaxError@highlightSourceAtLocation throwing error #274
Comments
I should note no Organization w/ id |
Yeah, this seems like the issue.
If you console.log |
Ah, yes. In my example I was passing an object to graphql, updated to I realized this is probably b/c there's no database connection. Added This is bad day for me because I was silly. Thanks for help. |
For others who encounter this error. I resolved it by using the |
Print is now deprecated in graphql-tag but you can import it from graphql-js as follows: |
Hi,
Got started w/ graphql w/ graffiti-mongoose & express-graphql. When using graphiql the server was hanging on every request.
Attempted to use graphql function instead, when called w/ any query for my schema I got this error:
{ errors: [ [TypeError: source.body.split is not a function] ] }
That error is useless and has very bad DX, not sure whether to create a seperate issue for it or whether the conversation in #28 should expand it's scope to concern errors thrown in
graphql
in addition to the schema.At
graphql/graphql.js:70
I added a logAnd got this stack:
I then logged source:
typeof source.body === "object"
This is the relevant mongoose model used to generate relevant part of schema:
This is my graphql server in current state of debugging:
The text was updated successfully, but these errors were encountered: