Azure DocumentDB에서 아래 쿼리가 지원됩니까? 문서를 반환하지 않습니다.Azure DocumentDB - 결과를 반환하는 쿼리
Variables values at runtime:
1. collectionLink = "<link for my collection>"
2. feedOptions = new FeedOptions { MaxItemCount = 2 }
3. name = "chris"
client.CreateDocumentQuery<T>(collectionLink, feedOptions).Where(m => (m.Status == "Foo" && (m.Black.Name == null || m.Black.Name != name) && (m.White.Name == null || m.White.Name != name)));
다음과 같은 간단한 쿼리로 테스트 한 결과 두 가지 모두 예상되는 결과를 반환합니다.
{
"id": "1992db52-c9c6-4496-aaaa-f8cb83a8c6b0",
"status": "Foo",
"size": 19,
"black": {
"name": "charlie"
},
"white": {},
}
감사 :
client.CreateDocumentQuery<T>(collectionLink, feedOptions).Where(m => m.Status == "Foo");
client.CreateDocumentQuery<T>(collectionLink, feedOptions).Where(m => m.Status == "Foo").Where(m => m.Size == 19);
마지막으로, 나는 문제가 쿼리의 필터 기준을 충족하는 문서가 보장했습니다.
지금 표준 형식 검사 기능으로'IS_DEFINED (expr)'가 보입니다. 위와 지금을 썼을 때 또는 UDF와 IS_DEFINED에 대해 다른 것을 볼 때 그 사이에 추가 되었습니까? –