filter - OData 扩展字段并按它们过滤
问题描述
我正在尝试使用以下 URL 进行 odata 请求并且它可以工作:
https://localhost:44379/api/lawyerswebservice/teammembers?$expand=RelatedTeam,Offices,RelatedExpertise,RelatedLocation
但是,当我添加这样的过滤器时:
https://localhost:44379/api/lawyerswebservice/teammembers?$filter=(contains(Title,'j')) and RelatedLocation/Id eq 69dce15b-6194-4d87-9090-7e5278267284&$expand=RelatedTeam,Offices,RelatedExpertise,RelatedLocation
这没用。目标是获取所有位置的 id 为 69dce15b-6194-4d87-9090-7e5278267284 且标题包含“j”的团队成员。我的语法错误还是其他?
有没有办法作为选择查询来做到这一点。看来这是一个站点限制错误:https ://knowledgebase.progress.com/articles/Article/OData-Query-filter-by-parent-dynamic-content-item-custom-field
解决方案
推荐阅读
- c# - android NullPointerException:尝试调用虚拟方法 - 空对象引用
- javascript - 为什么在我的反应应用程序中 JWT 令牌在第一次登录时不可用?
- c++ - 使用 getopt() 的多个选项和每个选项的多个参数
- amazon-web-services - Athena 从 lambda 查询权限,将结果存储在 s3
- json - Django REST 框架更改 JSON 结构
- .net - 实体图像未显示
- jquery - 在 Bootstrap 中设置弹出框
- linux - QEMU 内存分配问题
- python - 找到顶点之间的路径,在任何两个有食物的节点之间最多有 k 步
- javascript - 当对象在 duktape 中被删除/处置时,我该如何做一些清理工作?