The Guild LogoThe Guild Monogram
GraphQL Tools

GraphQL Tools

A set of utilities for faster GraphQL development

Get Started

Interface: IMockServer#

mock/src.IMockServer

Table of contents#

Methods#

  • query

Methods#

query#

query(query, vars?): Promise<ExecutionResult<ObjMap<unknown>, ObjMap<unknown>>>

Executes the provided query against the mocked schema.

Parameters#

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

Returns#

Promise<ExecutionResult<ObjMap<unknown>, ObjMap<unknown>>>

Defined in#

packages/mock/src/types.ts:228