download
Main entry point for downloading a schema either from introspection or from the Apollo Studio registry
One of endpoint (for introspection) or key (for registry) is required.
Parameters
url of the GraphQL endpoint for introspection
Apollo Studio users only The identifier of the Apollo graph used to download the schema.
Apollo Studio users only The Apollo API key. See https://www.apollographql.com/docs/studio/api-keys/ for more information on how to get your API key.
Apollo Studio users only The variant of the Apollo graph used to download the schema.
Apollo Studio users only The registry url of the registry instance used to download the schema. Defaults to "https://graphql.api.apollographql.com/api/graphql"
the file where to store the schema. If the file extension is ".json" it will be stored in introspection format. Else it will use SDL. Prefer SDL if you can as it is more compact and carries more information.
if set to true, TLS/SSL certificates will not be checked when downloading.
extra HTTP headers to send during introspection.