How to query sub document (list type) in Cosmos Db
问题 I have a collection in Azure CosmosDB, and each document looks like this: { "id": "random", "TeacherName": "Ben", "Students": [ { "Name": "John", "Telephone": "" }, { "Name": "Mary", "Telephone": "" } ], } TeacherName is string, Students is a list of student I need to do: Given a user name (user1), query and return all the documents, either teacher name is "user1" or there is a student with name "user1". I tried a few options, but cannot do it. The closest solution I found so far is to use