为什么我的 graphQL 查询返回的结果没有“where”过滤器?

Why is my graphQL query returning results without `where` filters?

我正在开发一个带有 nuxt/vuetify/apollo 前端的网络应用程序。后端是一个 strapi (v3.0.0-beta.18) server with a graphQL endpoint 和一个 mongoDB 数据库 (v4.2.2)

这可能是一个新手问题,因为这是我的第一个 graphql 项目。我查询一个名为标签的集合。看起来如下:

query Tags($search: String, $selected: [ID], $limit: Int) {
  tags: tags(
    limit: $limit
    sort: "score:desc"
    where: { name_contains: $search }
  ) {
    id
    name
    description
    type
  }
  selected: tags(where: { id_in: $selected }) {
    id
    name
    description
    type
  }
}

该查询返回应由 where 对象过滤的每个结果,而 sortlimit 过滤器有效。我的前端应用程序和 graphQL 操场上的行为是相同的。我错过了什么吗?

请注意,strapi Shadow CRUD 功能已启用。

事实证明,我在将 strapi 升级到最新版本时错过了一项重大更改。 mongose 连接器更改了名称:https://strapi.io/documentation/3.0.0-beta.x/migration-guide/migration-guide-beta.17-to-beta.18.html