apollographql / rover

✨🤖 🐶 The CLI for Apollo GraphOS
https://rover.apollo.dev
Other
402 stars 83 forks source link

Port over `apollo service:download` (introspection json from Studio) #784

Open lennyburdette opened 2 years ago

lennyburdette commented 2 years ago

Description

rover graph fetch returns the SDL from Studio, while rover graph introspect returns the introspection result from a running server. Could we get a version that returns the inspection result from Studio?

Possibly:

rover graph introspect <graphref>

or

rover graph fetch <graphref> --introspection

The use case is needing the introspection result for a codegen tool, but the server has introspection disabled.

col commented 1 year ago

This is has been bugging me for awhile now and it feels like should be a pretty obvious addition. The introspection json is available for download directly from the Studio UI but currently cannot be accessed via the Rover CLI.

col commented 1 year ago

I would be willing to put a PR together for this but I would at least have to know if Apollo Studio has a GraphQL query or API that will return the SDL in Raw or JSON format.

nicholaspufal commented 3 months ago

@lennyburdette do you know if outside of this PR has been any progress on this feature? It would be very useful for us as well. Thank you

lennyburdette commented 3 months ago

No progress as far as I know