fabien0102
01/19/2018, 10:28 AMgraphcool-framework
stack and would have to your ideas for this.
My best idea for instant is to have a clone of each model (call ${myModel}History
for example) with a relation to the up to date model (history: [myModelHistory!]!
to have an easy way to retrieve the history of each data).
In my case, I want to have a hook to deal with ${myModel}History
creation on each update (so I need the previous version of my data). If I'm referring to the doc, I can't use Subscription function (it's execute after the mutation), so my question is "can I do this history processing in a hook function?" or if you have a better idea for this use case ^^