apollographql / datasource-rest

A caching data source for REST APIs
MIT License
39 stars 20 forks source link

feat: add ability to skip http cache on request #332

Closed nmrj closed 4 months ago

nmrj commented 4 months ago

Add a new request prop that will skip http headers or previous TTL cached items and fetch fresh data

apollo-cla commented 4 months ago

@nmrj: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Apollo Contributor License Agreement here: https://contribute.apollographql.com/

codesandbox-ci[bot] commented 4 months ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

tninesling commented 4 months ago

Thanks for submitting this PR!

It looks like the CI checks haven't run, but one of my colleagues mentioned we can resolve this by pushing an empty commit from an Apollo employee. Would you be able to give me write access to your fork so we can get those running?

nmrj commented 4 months ago

@tninesling -- done!

tninesling commented 4 months ago

The tests are looking good! There's one small issue with the Prettier lint check, and then we just need changeset file to manage the version and changelog. You can create one with the changesets cli via npx changeset.

nmrj commented 4 months ago

@tninesling -- updated again!

tninesling commented 4 months ago

@nmrj This change is now released in version 6.3.0