Configurations#
QtGqlConfig
#
Encapsulates configurations for a qtgql-codegen application per GraphQL schema.
Source code in qtgqlcodegen/config.py
custom_scalars: CustomScalarMap = Factory(dict)
class-attribute
instance-attribute
#
Mapping of custom scalars, respected by the schema evaluator.
env_name: str = 'QGqlEnv'
class-attribute
instance-attribute
#
The generated types would find the environment by this name.
Also the generated QML imports would fall under this namespace.
generated_dir_name: str = '__generated__'
class-attribute
instance-attribute
#
The name of the directory that qtgql will create and dump the generated sources.
graphql_dir: Path
instance-attribute
#
A directory contains.
- schema.graphql, represents the current schema definition at the server.
- operations.graphql, queries, mutations and subscription handlers would be generated based on the operations defined there.
qml_plugins_path: str = '${CMAKE_BINARY_DIR}/qml'
class-attribute
instance-attribute
#
Qml plugins would be installed under this directory.
This should suffice for most basic setups.