Item historic version

Hi!

Just a quick question: is there a way to retrieve versions of an item that has had the generated Update* mutation called on it? For example, if I have a User type and generated AddUser and UpdateUser mutations that I call in order, would there be a way for me to query and fetch back both the original User object in the graph and the updated User?

Best,
John

Not by default.

If you want that sort of feature in your app, you’d need to add some sort of historical modelling to your graph, for the types that you want histories for, and then manage working with that history. Simplest way to do that is just date stamps.

There’s also all the devops kinds of answers, like backups etc, if it’s not a feature for your app.

2 Likes