I'm using selectonSet
in a mutation in OGM, and all works fine using a string literal with gql.
Ideally though I'd like to add type safety here, so in the same way that my where
clause is type safe through the generated OGM types, I'd like the same for the selectionSet
.
I looked at the docs and in forums, but as selectionSet only accepts string | DocumentNode | SelectionSetNode
, so this (currently) isn't possible? Or am i missing something?