👀 See Sanity in action: Watch product demo now →

GraphQL - Are Parent/Child Protected Field Names?

1 replies
Last updated: Apr 17, 2020
I’m guessing there are ‘protected’ field names? Was trying to make a parent/child relationship reference field, called
parent
and ran into drama in GraphQL. Wondering if there should be a warning for these in the studio?
Apr 17, 2020, 6:59 AM
Definitely, these should get a warning and some proper documentation 🙂 Thanks for sharing! Other candidates are
imageAsset
and
fileAsset
, which seem similarly prone to drama 🎭
Apr 17, 2020, 3:48 PM

Sanity.io – build remarkable experiences at scale

Sanity is a customizable solution that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.