Kong / insomnia

The open-source, cross-platform API client for GraphQL, REST, WebSockets, SSE and gRPC. With Cloud, Local and Git storage.
https://insomnia.rest
Apache License 2.0
34.8k stars 1.97k forks source link

[Feature Request] Import GraphQL schema as collection #2045

Open Techbrunch opened 4 years ago

Techbrunch commented 4 years ago

It would be awesome if there was the possibility to generate a collection of requests from a GraphQL schema if introspection is enabled.

Something like this: https://github.com/oshosanya/graphql-export/blob/master/src/exporters/insomnia/insomnia.ts

develohpanda commented 4 years ago

Wow, that is awesome! It may be possible to do something similar via an Insomnia plugin in the near future! 😁

mehdibahrami commented 4 years ago

Postman support this one but in a so bad model and because of that I switched to Insomnia and I saw you don't support it! It's really simple just user select a file and u make the requests based on the GraphQL Schema and also he should have an ability to refresh the collection and the app add new requests based on that

JamesPeters98 commented 3 years ago

Is this feature a possibility at all? It's the only thing stop me from switching from Postman. I'd ideally be able to generate queries and mutations with all the variables just like in Postman. And also be able to version each collection, as the API evolves.

stale[bot] commented 3 years ago

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.

myspivey commented 3 years ago

Comment to keep alive, still very interested in this.

staff0rd commented 3 years ago

This would be epic

osecluna commented 2 years ago

Yes please! It would be good it it could work something like importing a rest API from the openAPI spec.

shlomich commented 1 year ago

Is this out?

M-Davies commented 1 year ago

If this is still alive, bump please. Especially after Postman's recent enforcement of cloud sync'd collections