Query error when upgrade to ggt@1.4

I tried migrating filter query shop: { equals: ... } to shopId: {equals: ...} already. But still get the error attached. I sent an example for how my query fetch is done. Also attached an example for a create action too. What am I doing wrong? traceId: d76c1680c1092e0b3b86425bc3a59472. app: upez
No description
No description
No description
4 Replies
Chocci_Milk
Chocci_Milk•3mo ago
Hello, Since framework version 1.3, you have needed to use the id field of any belongsTo relationship in order to filter. This was a warning during framework version upgrades. Example:
// field shop

await api.someModel.findMany({
filter: {
shopId: {
equals: "someId"
}
}
})
// field shop

await api.someModel.findMany({
filter: {
shopId: {
equals: "someId"
}
}
})
ljspoor94
ljspoor94•3mo ago
I believe thats what the OP has done
Son Chu
Son ChuOP•3mo ago
i did that but still get these errors i replaced all occurance of shop: { equals } already oh no i didn't =="
Chocci_Milk
Chocci_Milk•3mo ago
The first image stated that there was still an occurance 😛

Did you find this page helpful?