GROQ Query - Can I Get Draft Version of a Document Referenced by the Parent Document?
Last updated: Jul 28, 2022
Hello all. Need some help in knowing if this is practically allowed in GROQ query.Can I get the draft version of the document (if present, else published) referenced by the parent document with id xxxx (and not
). So if parent document is referencing
, can I show the draft document drafts.xxxx if it exists even though the direct reference of the draft is not added in parent?I tried using match, coalesce but do not seem to get the expected result.