You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Enabling batch for GraphQL Handler connection to Directus.io results in the error below.
The integration works disabling batch.
{
"GraphQLError: Cannot read property 'columns' of undefined",
" at Object.relocatedError (/Users/dustin/Projects/mesh-directus-replication/node_modules/@graphql-tools/utils/index.cjs.js:3894:12)",
" at mergeDataAndErrors (/Users/dustin/Projects/mesh-directus-replication/node_modules/@graphql-tools/delegate/index.cjs.js:1397:34)",
" at /Users/dustin/Projects/mesh-directus-replication/node_modules/@graphql-tools/delegate/index.cjs.js:1425:66",
" at Array.forEach (<anonymous>)",
" at mergeDataAndErrors (/Users/dustin/Projects/mesh-directus-replication/node_modules/@graphql-tools/delegate/index.cjs.js:1423:27)",
" at /Users/dustin/Projects/mesh-directus-replication/node_modules/@graphql-tools/delegate/index.cjs.js:1425:66",
" at Array.forEach (<anonymous>)",
" at mergeDataAndErrors (/Users/dustin/Projects/mesh-directus-replication/node_modules/@graphql-tools/delegate/index.cjs.js:1423:27)",
" at checkResultAndHandleErrors (/Users/dustin/Projects/mesh-directus-replication/node_modules/@graphql-tools/delegate/index.cjs.js:1386:38)",
" at CheckResultAndHandleErrors.transformResult (/Users/dustin/Projects/mesh-directus-replication/node_modules/@graphql-tools/delegate/index.cjs.js:1382:16)"
Cannot read property 'columns' of undefined
That errors seems to be coming from the remote API. Batching basically creates operations with multiple fields with aliases in the boundaries of the GraphQL Spec.
You can disable it with batch: false flag. Also you can learn more its algorithm; https://www.graphql-tools.com/docs/batch-execution
Describe the bug
Enabling
batch
for GraphQL Handler connection to Directus.io results in the error below.The integration works disabling
batch
.To Reproduce
Steps to reproduce the behavior:
This repo will get you set up: https://github.com/ddcollins/mesh-directus-replication
Just enable
batch
for the handler in the config.The mesh config file also has commented out transforms that each result in an error when enabled.
Environment:
The text was updated successfully, but these errors were encountered: