我正在和邮递员一起试用COVID-19 Data Lake。我正在运行POST https://api.c3.ai/covid/api/1/therapeuticasset/fetch来获取由特定组织生产的疫苗。但看起来开发人员可以包含多个组织,所以我不能只过滤"developer == 'Vanderbilt'"这样的名称。
我也尝试过"'Vanderbilt' in developer"。我如何找到涉及特定大学的所有疗法?
发布于 2020-04-15 01:46:23
与rsyoung所说的类似--您可以使用intersects()表达式引擎功能对多个组织进行过滤。
Check if first argument (object or arry) is present within remaining arguments.
Example: intersects(arryField, ['a','b','c']): 因此,在您的示例中,您可以使用如下过滤器:
intersects(developer, ['Vanderbilt', 'OrganizationX', 'OrganizationY'])并且结果应该包括满足该条件的所有TherapeuticAssets。
发布于 2020-04-13 08:10:28
你可以用"contains(developer,'Vanderbilt')“做到这一点!
https://stackoverflow.com/questions/61179819
复制相似问题