Interface: IMockServer
mock/src.IMockServer
Table of contents
Properties
Properties
query
• query: (query: string, vars?: Record<string, any>) => Promise<ExecutionResult<ObjMap<unknown>, ObjMap<unknown>>>
Type declaration
▸ (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>>>