-
Notifications
You must be signed in to change notification settings - Fork 17
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
Syntax Error: Cannot parse the unexpected character "/". #2
Comments
Hi @gex super apologies for the delay - I've been on holiday. In your Did you run If you follow the steps laid out in "see it in action" from: https://github.com/graphql-cli/graphql-cli you should be able to run |
@gex How did you go? |
@develomark yep i was able to save the schema with
after i successfully run |
Can you share your |
@gex Can you share with me your schema? |
they added json output to i'm not allowed to post my schema publicly but if it helps i can share it with you. |
I didn't know that - seems to be undocumented! I wouldn't suggest that it is more straightforward. All the tooling pulls in What is the usecase for json over graphql for the schema? |
to be honest i don't remember exactly why i switched to json. i tried to setup a lot of things together. i'm using apollo, v2 needs fragment matching so i installed i switch back to graphql extension and try to get the fragments with that setup and get back to you with the results! |
Under the hood this is passing SDL (the schema) via I'll update the error message for this so it now throws a more informative error message. Thanks for the spot @gex |
OK that's done. Please update to the latest. |
thank you for your time and help! |
okay, now i remember why i switched to json:
|
@gex Hey no problem. FYI you don't need to have the schema in json for |
i get this syntax error when using the
generate-fragments
command:my
.graphqlconfig
:i've successfully saved the schema file (with
graphql get-schema
) so the url and the token are valid.from my
package.json
:The text was updated successfully, but these errors were encountered: