Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 1.84 KB

README.md

File metadata and controls

45 lines (35 loc) · 1.84 KB

MIT License PRs Welcome Watch on GitHub Star on GitHub Watch on GitHub Discord

GQL Link to transform Requests and Responses. May be used to update context, document, variables, data, errors, etc.

Usage

A simple usage example:

TransformLink(
  requestTransformer: (req) => req.withContextEntry(
    RequestExtensionsThunk((req2) => req2.operation.variables),
  ),
  responseTransformer: (resp) => resp.withContextEntry(
    ResponseExtensions("an extension"),
  ),
);

Features and bugs

Please file feature requests and bugs at the GitHub.