GadgetOperationError:
{
code:"GGT_UNKNOWN"
message:"GGT_UNKNOWN: [GraphQL] Variable "$filter" got invalid value { passKey: { equals: "secret111" } } at "filter.user"; Field "passKey" is not defined by type "IDFilter"."
stack:"Error: GGT_UNKNOWN: [GraphQL] Variable "$filter" got invalid value { passKey: { equals: "secret111" } } at "filter.user"; Field "passKey" is not defined by type "IDFilter".\n at gadgetErrorFor (https://artarpreviewinyourspace--development.gadget.app/api/client/web.js:4552:14)\n at assertResponseSuccess (https://artarpreviewinyourspace--development.gadget.app/api/client/web.js:4563:15)\n at assertMutationSuccess (https://artarpreviewinyourspace--development.gadget.app/api/client/web.js:4557:12)\n at globalActionRunner (https://artarpreviewinyourspace--development.gadget.app/api/client/web.js:5265:12)\n at async Client2.checkIfPaintingExistsAPI (https://artarpreviewinyourspace--development.gadget.app/api/client/web.js:7509:18)\n at async eval (eval at <anonymous> (https://assets.gadget.dev/assets/js/js-playground.0f4786678d126c76d9f1.js:1:3431), <anonymous>:1:35)\n at async https://assets.gadget.dev/assets/js/js-playground.0f4786678d126c76d9f1.js:1:3406"
};
const result = await api.Painting.findMany({
filter: {
clientPaintingID: {
equals: params.clientPaintingID,
},
user: {
passKey: {
equals: params.passKey,
},
},
},
select: {
id: true,
nbVariants: true,
link: true,
user: {
passKey: true,
}
},
first: 250,
});