Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add graphql-sunset #755

Merged
merged 1 commit into from
Aug 11, 2024
Merged

Conversation

sophiabits
Copy link
Contributor

[URL to the resource here.]
https://github.com/sophiabits/graphql-sunset

[Explain what this resource is all about and why it should be included here.]
Sunset is a standard HTTP header used to communicate that a resource will become unavailable in future. This signaling is important as it gives consumers warning for them to move off the deprecated resource before removal, and because the Sunset header is interpretable programmatically consumers can build nice alerting systems around it (WeWork has done this, for instance: https://github.com/wework/faraday-sunset)

This library offers a simple and easy way to add support for this header to GraphQL servers. Schema resources can be annotated with an @sunset directive, and the server will automatically send back a Sunset response header to any consumer that requests those marked resources.

@setchy setchy merged commit 68251cd into chentsulin:master Aug 11, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants