Comments (7)
As far as I understand best practices are to keep your old field and add the new one.
Then you flag this old field as deprecated (isDeprecated
) in your schema.
https://facebook.github.io/graphql/#sec-Object-Field-deprecation
But yeah I agree that a dedicated section about versioning could be a good idea.
from graphql.github.io.
Thansk for your reply. I just saw that Facebook is still versioning their GraphQL API in the URI. Two other questions: How do you deprecate a whole type? How do you deal with mutations?
from graphql.github.io.
I just saw that Facebook is still versioning their GraphQL API in the URI.
Are they? I haven't heard anything about this, as far as I know they've been using the same schema since the beginning. If anything, I suspect this is because they have rewritten the entire syntax and so they would need a separate endpoint for the old query language.
How do you deprecate a whole type? How do you deal with mutations?
I imagine you would deprecate all fields that point to that type. And you can deprecate mutations the same way, since they are just normal fields.
from graphql.github.io.
@stubailo See here https://developers.facebook.com/docs/graph-api/overview/#versions
from graphql.github.io.
The Graph API is not the same thing as GraphQL, even though they have similar names. Facebook doesn't have a public GraphQL API at all.
from graphql.github.io.
The need for a versioning page is already recorded in the new site plan: #41
Going to close this issue then.
from graphql.github.io.
The Graph API is not the same thing as GraphQL, even though they have similar names. Facebook > doesn't have a public GraphQL API at all.
Ah right, then I messed it up a bit 😊
Thanks for clarifying and working on it!
from graphql.github.io.
Related Issues (20)
- Edit this page button takes to github.com and to this repo HOT 3
- Support for Dark theme ? HOT 1
- `StarWarsSchema` type descriptions are `null` in Introspection docs
- "Edit this page" link on FAQ page goes to `github.com/faq` HOT 2
- Clarification on "Schemas and Types" documentation
- Remove the "GraphQL Conf 2023" registration banner
- Feature request for GitHub GraphQL? HOT 1
- npm and GitHub stars/downloads show as 0 for all tools HOT 1
- Add link to store.graphql.org HOT 4
- Updated docs to reflect express-graphql deprecation HOT 3
- Query editors don't have visible scrollbars
- /swapi-graphql is broken again HOT 6
- [Discussion] Getting Started experience on graphql.org HOT 3
- Explain a bit more what Ruru is? HOT 1
- [Improvement request]: Segregate GraphGL standard implementation features from GraphGL extensions
- Landscape iframe busted on https://graphql.org/users/ HOT 2
- Clarify that some of the meetings on the calendar are not open to the public
- [Question] Sample code for GraphQL.js tutorial HOT 3
- Rename `source` branch to `main`
- remove LESS preprocessor and `next-with-less` package
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graphql.github.io.