Constructor
Parameters:
Name |
Type |
Description |
options |
object
|
options for the transform.
Properties
Name |
Type |
Attributes |
Description |
path |
Array.<string>
|
|
path to apply selectionSet changes. |
queryTransformer |
function
|
|
a query transformer function that takes
the original selection set AST and a map of the query fragments as arguments and returns a
new selection set. |
resultTransformer |
function
|
<optional>
|
an optional function that processes the
result of the transformed query. |
fragments |
object
|
<optional>
|
a map of named fragment definitions that can be
be referenced within the selection set. |
|
Returns:
a graphql-tools Transform instance
-
Type
-
Transform