postmanlabs / postman-app-support

Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.
https://www.postman.com
5.84k stars 839 forks source link

GraphQL Schema reload from filesystem #8350

Open DaveSanders opened 4 years ago

DaveSanders commented 4 years ago

Is your feature request related to a problem? Please describe. When you add a GraphQL API from a schema file, there doesn't seem to be a way to reload the file without deleting and re-adding the API.

Describe the solution you'd like I'd like to be able to at least manually refresh the schema based on the file that I originally imported. Ideally, Postman watches the file and reloads when that file changes automatically.

Additional context In my scenario, I'm building a GraphQL server in node.js and writing out the schema on each save / rebuild / restart of the app. This is when I'm undergoing rapid development, adding queries, objects, etc.

I'd like to be able to get the GraphQL autocomplete to update when I make changes to the schema - or, at a minimum, be able reload the schema with a click when I need to.

While I know you can connect an API to a repository - that's not useful in this phase of development.

Thanks!

joel-wenzel commented 3 years ago

Yes Please

WilbertBocanegra commented 2 years ago

any solution??

SterlingChin commented 1 year ago

The new GraphQL client is available in open beta. With the new client, we have automatic introspection available as well as the ability to manually create an API or import the schema from your local machine!

Introspection

graphql-introspection

Import from Local

graphql-import-schema

Import from Postman

graphql-import-api

Ilya-bmx commented 1 year ago

@SterlingChin you don t explain , how to reimport from local, but i i know how, so it doesn t work