-
Notifications
You must be signed in to change notification settings - Fork 467
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
what is the difference between apollo
and apollo-codegen
?
#466
Comments
They just recently renamed this repository from apollo-codegen to apollo-cli. apollographql/rover#447 https://twitter.com/apollographql/status/1012378306195415040 |
ok, so going forward, we should be using the |
It seems that the ability to read the schema from a graphql file is also missing from the Was this taken out? |
@deltaskelta - I've found that it's just moved, but the documentation isn't great.
|
2 different things I think. The docs lgtm 🤷♂️ Download: Generate: |
the
and the
So there is no mention of |
I just happened to try it and it seemed to work fine. I made a PR for the docs. apollographql/rover#475 |
Schema.json generated by |
Have there been breaking changes to
|
I found this document very well written... it also has
|
Never would have thought to look in the iOS docs for stuff about |
@lukepighetti For the client, this is what I have been doing:
This will look for any gql tags throughout the files that the query parameter resolves to. It will then use those operations, along with the schema file, to generate the types. I am on apollo@2.1.3. For some reason, 2.1.2 did not work for me. I also hooked up these command into npm/yarn scripts so I don't have to manually run then every time. In order to get that to work, I had to upgrade graphql to 14.0.0 and create a resolution entry for it in package.json.
I think there may be a way to do #2 and #3 in 1 command as apollo client:codegen has an --endpoint parameter, however, I was not able to get it to work. |
@cmcaboy minor note on the --queries flag but appreciate your comment - helps clear up confusion for me! |
The readme only references the
apollo
command, but a lot of the issues refer toapollo-codegen
, I can't find any references to theapollo-codegen
command. Was that an older version?The text was updated successfully, but these errors were encountered: