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.
schemaandschema_extensionstake relative paths to files, not to folders.- Only
project_rootandschemaare required. - Valid values for
on_invalid_id_typeareignore,warninganderror. artifact_directorydefaults toproject_root.