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
The query for bulk creating doesn't coincide with graphql API.
Bulk add returns a string, while in the SPA the query expects to receive an array of records, as in the older version of the schema.
Now if we try to use it, we'll receive the error:
GraphQLError: Field "bulkAddCuadranteCsv" must not have a selection since type "String!" has no subfields.
at Object.Field (/usr/Sandbox/graphql-server/node_modules/graphql/validation/rules/ScalarLeafs.js:42:33)
at Object.enter (/usr/Sandbox/graphql-server/node_modules/graphql/language/visitor.js:324:29)
at Object.enter (/usr/Sandbox/graphql-server/node_modules/graphql/language/visitor.js:375:25)
at visit (/usr/Sandbox/graphql-server/node_modules/graphql/language/visitor.js:242:26)
at validate (/usr/Sandbox/graphql-server/node_modules/graphql/validation/validate.js:73:24)
at /usr/Sandbox/graphql-server/node_modules/express-graphql/index.js:121:32
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
{"message":"Field \"bulkAddCuadranteCsv\" must not have a selection since type \"String!\" has no subfields.","locations":[{"line":1,"column":30}],"source":{"body":"mutation{ bulkAddCuadranteCsv{ cuadrante_id} }","name":"GraphQL request","locationOffset":{"line":1,"column":1}},"positions":[29]}
Fix this on SPA.
The text was updated successfully, but these errors were encountered:
The query for bulk creating doesn't coincide with graphql API.
Bulk add returns a string, while in the SPA the query expects to receive an array of records, as in the older version of the schema.
Now if we try to use it, we'll receive the error:
Fix this on SPA.
The text was updated successfully, but these errors were encountered: