The Isograph configuration object
Config file location and name
The file should be named isograph.config.json
and located at the root of your project.
Config file contents
An example (complete) Isograph config is as follows. It contains default options
:
{
"project_root": "./src/components",
"artifact_directory": "./src",
"schema": "./backend/schema.graphql",
"schema_extensions": ["./backend/schema-extension.graphql"],
"options": {
"on_invalid_id_type": "error",
"on_missing_babel_transform": "error",
"include_file_extensions_in_import_statements": false
}
}
- All paths are relative.
schema
andschema_extensions
take relative paths to files, not to folders.- Only
project_root
andschema
are required. - Valid values for
on_invalid_id_type
areignore
,warning
anderror
. artifact_directory
defaults toproject_root
.