I have created some documents and managed to make some simple queries but I can't create a query that would find documents where a field just exists.
For example suppose this is a document:
{ "profile_sidebar_border_color" : "D9B17E" ,
"name" : "???? ???????" , "default_profile" : false ,
"show_all_inline_media" : true , "otherInfo":["text":"sometext", "value":123]}
Now I want a query that will bring all the documents where the text in otherInfo
has something in it.
If there is no text, then the otherInfo
will just be like that: "otherInfo":[]
So I want to check the existence of the text
field in otherInfo
.
How can I achieve this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…