docs: fix call to for_read in auth docs (#1291)

This commit is contained in:
Barnabas Jovanovics 2024-07-08 15:51:56 +02:00 committed by GitHub
parent 2da5fe3395
commit 51e003e4f2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -35,7 +35,7 @@ MyDomain.create_post!(Post, authorize?: true)
> # DO THIS
>
> Post
> |> Ash.Query.for_read(:read, actor: current_user)
> |> Ash.Query.for_read(:read, %{}, actor: current_user)
> |> Ash.read!()
>
> # DON'T DO THIS