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.
Type declaration
▸ (query
, vars?
): Promise
<ExecutionResult
<any
, any
>>
Parameters
Name | Type | Description |
---|---|---|
query | string | GraphQL query to execute |
vars? | Record <string , any > | Variables |
Returns
Promise
<ExecutionResult
<any
, any
>>