Interface: IMockServer#
mock/src.IMockServer
Table of contents#
Methods#
Methods#
query#
▸ query(query
, vars?
): Promise
<ExecutionResult
<ObjMap
<unknown
>, ObjMap
<unknown
>>>
Executes the provided query against the mocked schema.
Parameters#
Name | Type | Description |
---|---|---|
query | string | GraphQL query to execute |
vars? | Record <string , any > | Variables |
Returns#
Promise
<ExecutionResult
<ObjMap
<unknown
>, ObjMap
<unknown
>>>
Defined in#
packages/mock/src/types.ts:228