The Guild LogoThe Guild Monogram

Search docs

Search icon

Products by The Guild

Products

Hive logoHive blurred logo

Hive

Schema Registry for your GraphQL Workflows

Skip to main content

Interface: MockingConfig

types/src.YamlConfig.MockingConfig

Mock configuration for your source

Table of contents#

Properties#

Properties#

if#

Optional if: boolean

If this expression is truthy, mocking would be enabled You can use environment variables expression, for example: ${MOCKING_ENABLED}

Defined in#

packages/types/src/config.ts:1055


initializeStore#

Optional initializeStore: any

The path to the code runs before the store is attached to the schema

Defined in#

packages/types/src/config.ts:1068


mocks#

Optional mocks: MockingFieldConfig[]

Mock configurations

Defined in#

packages/types/src/config.ts:1064


preserveResolvers#

Optional preserveResolvers: boolean

Do not mock any other resolvers other than defined in mocks. For example, you can enable this if you don't want to mock entire schema but partially.

Defined in#

packages/types/src/config.ts:1060