Catch the highlights of GraphQLConf 2023! Click for recordings. Or check out our recap blog post.
Docs
API Reference
Interfaces
IMockServer

graphql-tools-monorepo / mock/src / IMockServer

Interface: IMockServer

mock/src.IMockServer

Table of contents

Properties

Properties

query

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

Executes the provided query against the mocked schema.

Param

GraphQL query to execute

Param

Variables

Type declaration

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

Executes the provided query against the mocked schema.

Parameters
NameTypeDescription
querystringGraphQL query to execute
vars?Record<string, any>Variables
Returns

Promise<ExecutionResult<any, any>>

Defined in

packages/mock/src/types.ts:248