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
I am trying to use the SDK to generate typesafe queries for GraphQL endpoints that is working perfectly for certain endpoints, but I have an endpoint with a complicated, deeply nested GraphQL structure and the mesh can't deal with it.
During the build I receive this error:
Error 99: There can be only one variable named "$cloneFactSheet_factSheet_factSheet_relToRequiredBy_facetFilters".
at cloneFactSheet_mutation.graphql:1:2931
The selectionSetDepth is set to 2, but if I increase that number, then the build time became extremely long and then still fails, but with a different error:
RangeError: Invalid string length
at Array.join (<anonymous>)
at join (<my_project_folder>\node_modules\graphql\language\printer.js:312:37)
at Object.leave (<my_project_folder>\node_modules\graphql\language\printer.js:36:33)
at visit (<my_project_folder>\node_modules\graphql\language\visitor.js:197:21)
at print (<my_project_folder>\node_modules\graphql\language\printer.js:19:29)
at generateOperations (<my_project_folder>\node_modules\@graphql-mesh\cli\cjs\commands\generate-operations.js:20:48)
at generateTsArtifacts (<my_project_folder>\node_modules\@graphql-mesh\cli\cjs\commands\ts-artifacts.js:118:59)
at async Object.handler (<my_project_folder>\node_modules\@graphql-mesh\cli\cjs\index.js:350:13)
Unfortunately I can't provide an example, as the API and the data I am working with is not public.
Is there any solution for this problem, or I am doing something wrong?
I know there is the execute() function that could be used instead, but it is not typesafe.
Does it have any other disadvantages compared to the SDK?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am trying to use the SDK to generate typesafe queries for GraphQL endpoints that is working perfectly for certain endpoints, but I have an endpoint with a complicated, deeply nested GraphQL structure and the mesh can't deal with it.
During the build I receive this error:
The
selectionSetDepth
is set to 2, but if I increase that number, then the build time became extremely long and then still fails, but with a different error:Unfortunately I can't provide an example, as the API and the data I am working with is not public.
Is there any solution for this problem, or I am doing something wrong?
I know there is the
execute()
function that could be used instead, but it is not typesafe.Does it have any other disadvantages compared to the SDK?
Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions