现在,我试图在Strapi GraphQL操场的位置中使用多个GraphQL查询。我使用的查询是:
{
clients(
where: {
_and: [{ name: { _contains: "a" } }, { endDate: { _gte: "2017-12-31" } }]
}
) {
id
name
endDate
reasonForEnding
}
}但是,得到一个错误说明如下:
"Error: Your filters contain a field '_and' that doesn't appear on your model definition nor it's relations".如何使用多个_and条件正确查询GraphQL Strapi中的where子句
发布于 2022-05-08 17:57:42
clients(
where: {
and: [{ name: { contains: "a" } }, { endDate: { gte: "2017-12-31" } }]
}
) {
id
name
endDate
reasonForEnding
}这就是答案
https://stackoverflow.com/questions/65420524
复制相似问题