Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f6536fe

Browse files
DOCSP-44158: Convert arrow to dot notation (#3173)
Adds information about dot and arrow notation conversion in v5.1
1 parent 9108d27 commit f6536fe

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

‎docs/query-builder.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,13 @@ value greater than ``8.5`` and a ``year`` value of less than
221221
:start-after: begin query andWhere
222222
:end-before: end query andWhere
223223

224+
.. tip::
225+
226+
For compatibility with Laravel, Laravel MongoDB v5.1 supports both arrow
227+
(``->``) and dot (``.``) notation to access nested fields in a query
228+
filter. The preceding example uses dot notation to query the ``imdb.rating``
229+
nested field, which is the recommended syntax.
230+
224231
.. _laravel-query-builder-logical-not:
225232

226233
Logical NOT Example

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /