Skip to content

Update ne.txt #1579

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions source/reference/operator/query/ne.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@ $ne
including those documents that do not contain the ``qty`` field.

Consider the following example which uses the :query:`$ne`
operator with a field from an embedded document:
operator with a field in an embedded document:

.. code-block:: javascript

db.inventory.update( { "carrier.state": { $ne: "NY" } }, { $set: { qty: 20 } } )

This :method:`~db.collection.update()` operation will set
the ``qty`` field value in the documents that contains the embedded
the ``qty`` field value in the documents that contain the embedded
document ``carrier`` whose ``state`` field value does not equal "NY",
or where the ``state`` field or the ``carrier`` embedded document
does not exist.
do not exist.

.. seealso::

Expand Down