Class: TransformQuery

apollo-stitcher~TransformQuery(options) → {Transform}

Transform to update a selection set, useful for wrapping fields or adding additional fields.

Constructor

new TransformQuery(options) → {Transform}

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