apollo-fetch
apollo-fetch copied to clipboard
docs(types): Add context to GraphQLRequest type
trafficstars
- Adding context to
GraphQLRequesttype so we can properly use context inside middleware:
const middleware = ({ request, options }, next) => {
// Here request.context is not available in TS as request is of type GraphQLRequest
next();
};
@Nighthawk14: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Meteor Contributor Agreement here: https://contribute.meteor.com/
@evans Bumping up this PR :).