Can we version graphql query
Is there any way we can version the graphql persisted queries.
Is there any way we can version the graphql persisted queries.
Persisted queries url gets cached. So versioning of query is creating new url, not available in cache. Currently in our project, we duplicate the queries to v2 like this

This way old clients will continue using v1 version and new clients can switch to v2.
Remember, non-breaking changes, like adding new fields, dont require versioning. Since clients would simply ignore new field. But breaking changes, like changing modal, removing fields, changing filters etc, will break existing clients and has to be versioned.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.