0

How do you deal with versioning?

Shouldn't the query include some kind of version id along with the query id and variables so that the server is able to serve multiple versions at the same time?

1 Answer 1

1

We will make an assumption that all your persisted query can be referenced by a unique ID (i.e., a hash of the query string). In this case, if the server has all current and old queries persisted, then no versioning is needed. The server can continue to serve older and new queries.

In the event you don't use unique IDs on your server (i.e., persistgraphql used auto-incrementing IDs at the time of this answer), then you'll need to figure an alternative solution. For example, you could prefix the ID with the version of the client app. In all honesty, though, I would highly recommend going with the unique ID approach for identifying persisted queries.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.