gql_transform_link 0.2.1-alpha+1621197333792 gql_transform_link: ^0.2.1-alpha+1621197333792 copied to clipboard
GQL Link to transform Requests and Responses. May be used to update context, document, variables, data, errors, etc.
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.