iamclaytonray
11/10/2017, 11:47 PMiamclaytonray
11/11/2017, 1:52 AMPkmmte
11/11/2017, 2:15 AMPastPost
which is a replica of Post
but with a reference to the newest version of the post. Then have a past
array field in Post
with references to old versions of the post. Every time the post gets updated, I'd create a new Post
, convert the old Post
into a PastPost
, and link them.
2. If only a subset of the post data is versioned (for example, body
), I'd create a PostBody
type instead and simply convert body
in Post
into an array. That way I always just fetch the latest and have access to old.
This would save a lot of storage space if your Post
type is quite large and only a subset is updated.iamclaytonray
11/11/2017, 2:17 AMPkmmte
11/11/2017, 2:17 AMiamclaytonray
11/11/2017, 8:33 PMiamclaytonray
11/11/2017, 8:34 PM