Skip to content
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

DOCSP-44158: Convert arrow to dot notation #3173

Merged
merged 2 commits into from
Oct 11, 2024
Merged
Changes from 1 commit
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
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::

In v5.1, you can use the arrow (``->``) or dot (``.``) notation
to access nested fields in a query filter. The preceding example
uses the dot notation to query the ``imdb.rating`` nested field, but
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: I think "arrow notation" and "dot notation" without "the" is more common? Disregard if this is the laravel-specific terminology though

Suggested change
In v5.1, you can use the arrow (``->``) or dot (``.``) notation
to access nested fields in a query filter. The preceding example
uses the dot notation to query the ``imdb.rating`` nested field, but
In v5.1, you can use arrow (``->``) or dot (``.``) notation
to access nested fields in a query filter. The preceding example
uses dot notation to query the ``imdb.rating`` nested field, but

``imdb->rating`` achieves the same result.

GromNaN marked this conversation as resolved.
Show resolved Hide resolved
.. _laravel-query-builder-logical-not:

Logical NOT Example
Expand Down
Loading