apollo-fetch icon indicating copy to clipboard operation
apollo-fetch copied to clipboard

docs(types): Add context to GraphQLRequest type

Open Nighthawk14 opened this issue 7 years ago • 2 comments
trafficstars

  • Adding context to GraphQLRequest type 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 avatar Jan 15 '18 09:01 Nighthawk14

@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/

apollo-cla avatar Jan 15 '18 09:01 apollo-cla

@evans Bumping up this PR :).

Nighthawk14 avatar Apr 20 '18 09:04 Nighthawk14