underKey (Structured Query)

isubiker edited this page Nov 11, 2011 · 2 revisions

Confines the specified query to only match under the specified key.

{
    "underKey": "bio",
    "query": {
        "key": "para"
        "contains": "Princeton",
    }
}

<constraint>
    <underKey>bio</underKey>
    <query>
        <constraint>
            <key>para</key>
            <contains>Princeton</contains>
        </constraint>
    </query>
</constraint>

The above query will only match documents where the bio key has a para key underneath it that contains the string "Princeton".

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.