Operations
config.factoryName
By default, this plugin generates factories named create{Type}Mock
.
So for a query GetUserQuery
, the corresponding factory will be named createGetUserQueryMock
.
config.schemaFactoriesPath
By default, this plugin assumes that the operations and schema factories are generated in the same file. The operations factories reference the schema's without importing them.
If they are not generated in the same file, you need to provide the schemaFactoriesPath
.
config.namespacedSchemaFactoriesImportName
By default, the import factories namespace when using config.schemaFactories
is schemaFactories
.
You can customize this namespace by configuring namespacedSchemaFactoriesImportName
.