Apollo-tooling: Feature request: export the schema as a GraphQL type language string

Created on 28 Jul 2017  路  6Comments  路  Source: apollographql/apollo-tooling

It looks like apollo-codegen introspect-schemat only outputs a .json file; could it instead output a .js file with a GraphQL type language string that would work with https://github.com/apollographql/graphql-tools?

From:
http://dev.apollodata.com/tools/graphql-tools/generate-schema.html

Most helpful comment

Any update on schema file export? This would be incredibly helpful to run code generation after schema updates without having to actually start a server and expose a endpoint which might be different for each developer working on a project (.env files and all), also greatly simplifying CI use cases when not having to expose an endpoint todo typescript generation.

All 6 comments

I'm now using and recommending the new graphql-cli and graphql-config standards: https://www.graph.cool/blog/2017-08-01-graphql-config-and-cli-aeghee3di9. Would be great if this repo gets updated to use them as well :)

I think it's a great idea to be able to output in both formats.

Closing for lack of activity. Feel free to reopen if someone is going to work on it :)

Any update on schema file export? This would be incredibly helpful to run code generation after schema updates without having to actually start a server and expose a endpoint which might be different for each developer working on a project (.env files and all), also greatly simplifying CI use cases when not having to expose an endpoint todo typescript generation.

It would also be great to be able to export a schema without looking at the context. So there's no longer a need to feed it with an ever changing token just to get a schema exported.

Could this be reopened please?

Was this page helpful?
0 / 5 - 0 ratings