typesafe selectionSets in the presence of filtering #3170
Unanswered
leemhenson
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi.
I have a subschema (outside of my control) that looks like this:
and another subschema (outside of my control) that looks like:
and I want to produce the following stitched schema:
I'm using this
.meshrc.yaml
:And this additional resolver:
And this works ✅ . However, it's not typesafe as you can see I have to cast the
root
so it knows I have addedbookIds
to the selection set. Is there any way to makemesh build
typecheck the selectionSet and merge it with the parent type? Thanks!Beta Was this translation helpful? Give feedback.
All reactions