Mongodb query with fields in the same documents <p>I have next json.</p> <pre><code>{ "a1": {"a": "b"}, "a2": {"a": "c"} } </code></pre> <p>I want request all documents where a1 not equal a2 in the same document.</p> <p>How I can do it?</p>