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
    .graphql or .gql documents, relative to the config file. Absolute
    patterns are a ConfigError, and a { without a closing } is a literal
    character. node_modules and dot-directories are skipped, and the schema
    file is never treated as a document.
  • scalars: a Schema codec per custom scalar, also able to override the
    built-in Int, Float and ID. Custom scalars named DateTime and URI
    default to Schema.DateTimeUtcFromString and Schema.String; scalars
    can override them too. Other unmapped custom scalars decode as Schema.Json.
  • shared: where the shared module goes. Defaults to the schema’s name and
    directory, e.g. github.graphql or github.json gives
    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, .js or missing extension is replaced;
    any other extension, such as .mjs, is kept.

Read more here: Source link