You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use the graphqlschema command to save the GraphQL schema locally for use by the likes of IDEs, etc. However, when I invoke the command, I get a file named schema.graphql but the contents are Python code, not GraphQL syntax.
My pyproject.toml looks like this:
[tool.ariadne-codegen]
remote_schema_url = "https://api.mycompany.com/graphql"# Env var has to be the entire value, not just the token# https://github.com/mirumee/ariadne-codegen/issues/231remote_schema_headers = {"Authorization" = "$GRAPH_INTROSPECTION_TOKEN"}
queries_path = "src/queries.graphql"target_package_path = "src"target_package_name = "graph_client"target_file_path = "schema.graphql"include_all_inputs = falseinclude_all_enums = false
and I'm invoking the tool like:
ariadne-codegen graphqlschema
I'm using ariadne-codegen 0.7.1
pip list | grep ariadne
ariadne 0.21
ariadne-codegen 0.7.1
The first little bit of my schema.graphql that is generated looks like this:
I'm trying to use the
graphqlschema
command to save the GraphQL schema locally for use by the likes of IDEs, etc. However, when I invoke the command, I get a file namedschema.graphql
but the contents are Python code, not GraphQL syntax.My
pyproject.toml
looks like this:and I'm invoking the tool like:
I'm using ariadne-codegen 0.7.1
The first little bit of my
schema.graphql
that is generated looks like this:The text was updated successfully, but these errors were encountered: