Config API Reference | Effect
The configuration Schema, used to decode a config file’s default export.
schema: the SDL (.graphql) or introspection JSON (.json) file,
relative to the config file.documents: glob patterns (*,**,?,{a,b}) for the executable
.graphqlor.gqldocuments, relative to the config file. Absolute
patterns are aConfigError, and a{without a closing}is a literal
character.node_modulesand dot-directories are skipped, and the schema
file is never treated as a document.scalars: aSchemacodec per custom scalar, also able to override the
built-inInt,FloatandID. Custom scalars namedDateTimeandURI
default toSchema.DateTimeUtcFromStringandSchema.String;scalars
can override them too. Other unmapped custom scalars decode asSchema.Json.shared: where the shared module goes. Defaults to the schema’s name and
directory, e.g.github.graphqlorgithub.jsongives
github.graphql.ts. It can’t be the schema, a document or a document’s
output.importExtension: the extension used in imports between generated files
and to relative scalar modules. Accepts.ts(default) or.js. A
relative scalar module’s.ts,.jsor missing extension is replaced;
any other extension, such as.mjs, is kept.
Read more here: Source link
