Stitching Directive throwing error for array batching #4477
Unanswered
fahadbillah
asked this question in
Q&A
Replies: 1 comment 4 replies
-
Not sure, maybe a repo might help with a minimal reproduction? Btw I wonder if you need to expose divisionId in your district type as it should be available under division. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I setup 2 simple gql service and 1 gql gateway to stitch them together using stitching directive. I tried to use array batching to resolve stitched field for efficiency.
Problem is one-to-many relation is throwing error for array batching. After debugging I can see
Dataloader
throwing error because of value and key length mismatch. Here's the schema.When I'm running following query (one-to-many) dataloader throwing value & key length mismatch error
But running inverse query (one-to-one) seems ok by dataloader.
But it was working fine when I used
batchDelegateToSchema
instead of stitching directive. Am I missing something? BTW I'm following @gmac stitching handbook. Please suggest me what's wrong with my implementation. Thanks.Beta Was this translation helpful? Give feedback.
All reactions