在 Apostrophe cms 中,如何获取与国家(joinByArray)对应的值相同的专家列表?

In Apostrophe cms ,How can i get the list of the specialist whose value corresponding to the country(joinByArray) are same?

我创建了一个名为Specialists 的撇号片段,其中包含多个专家的数据。 pieces 模式中的字段之一是 COUNTRY(他们访问过的国家/地区的名称),它由 array 连接。现在如何获得与国家对应的值相同的专家列表。即..我怎样才能只得到那些访问过印度或中国的专家。 [我使用撇号表示无头]

我的架构如下所示:

module.exports = {
  name: 'specialist',
  extend: 'apostrophe-pieces',
  label: 'Specialist',
  restApi:true,
  pluralLabel: 'Specialists',
  addFields: [
    {
      name: 'name',
      label: 'Name',
      type: 'string',
      required: true
    },
    {
      name: 'photo',
      label: 'Photo',
      type: 'singleton',
      widgetType: 'apostrophe-images',
      options: {
        aspectRatio: [ 1, 1 ],
        minSize: [ 300, 300 ],
        limit: 1
      }
    },
    {
      name: 'phoneNumber',
      label: 'Phone Number',
      type: 'integer',
      required: true
    },
    {
      name: 'email',
      label: 'E Mail',
      type: 'email',
      required: true

  }
    {
      name: '_country',
      label: 'Country',
      type: 'joinByOne,
      required: true,
      withType: 'country'
    },

Apostrophe Headless 文档提供了有关配置的信息,以允许 filtering piece GET requests. You might not need to do much else, but there is additional docs on setting custom cursors 过滤器(如果需要)。