new Query(typeBundle, nameopt, variablesopt, selectionSetCallback)
This constructor should not be invoked directly. Use the factory functions Client#query or Document#addQuery to create a Query.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
typeBundle |
Object | A set of ES6 modules generated by graphql-js-schema. |
|
name |
String |
<optional> |
A name for the query. |
variables |
Array.<Object> |
<optional> |
A list of variables in the query. See Client#variable. |
selectionSetCallback |
function | The query builder callback. A SelectionSet is created using this callback. |