Skip to content

Commit

Permalink
DOCSP-44158: Convert arrow to dot notation (#3173)
Browse files Browse the repository at this point in the history
Adds information about dot and arrow notation conversion in v5.1
  • Loading branch information
norareidy authored Oct 11, 2024
1 parent 9108d27 commit f6536fe
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/query-builder.txt
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,13 @@ value greater than ``8.5`` and a ``year`` value of less than
:start-after: begin query andWhere
:end-before: end query andWhere

.. tip::

For compatibility with Laravel, Laravel MongoDB v5.1 supports both arrow
(``->``) and dot (``.``) notation to access nested fields in a query
filter. The preceding example uses dot notation to query the ``imdb.rating``
nested field, which is the recommended syntax.

.. _laravel-query-builder-logical-not:

Logical NOT Example
Expand Down

0 comments on commit f6536fe

Please sign in to comment.