mock_src.imockoptions

Interface: IMockOptions#

mock/src.IMockOptions

Hierarchy#

  • IMockOptions

Table of contents#

Properties#

Properties#

mocks#

Optional mocks: IMocks

The mocks to add to the schema.

Defined in: packages/mock/src/types.ts:25


preserveResolvers#

Optional preserveResolvers: boolean

Set to true to prevent existing resolvers from being overwritten to provide mock data. This can be used to mock some parts of the server and not others.

Defined in: packages/mock/src/types.ts:30


schema#

Optional schema: GraphQLSchema

The schema to which to add mocks. This can also be a set of type definitions instead.

Defined in: packages/mock/src/types.ts:21