Skip to Content
GraphQL Tools
DocumentationAPI@graphql-tools/mocksrcinterfacesIMockServer

Interface: IMockServer

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

Properties

query

query: (query, vars?) => Promise<ExecutionResult<any, any>>

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

Executes the provided query against the mocked schema.

Parameters

query

string

GraphQL query to execute

vars?

Record<string, any>

Variables

Returns

Promise<ExecutionResult<any, any>>