mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 13:33:20 +12:00
docs: use full module name (#230)
This will make the Query docs easier to follow
This commit is contained in:
parent
f6fa5a98dd
commit
85d9e8f86c
1 changed files with 8 additions and 7 deletions
|
@ -11,22 +11,23 @@ defmodule Ash.Query do
|
|||
|
||||
```elixir
|
||||
MyApp.Post
|
||||
|> Query.filter(likes > 10)
|
||||
|> Query.sort([:title])
|
||||
|> Ash.Query.filter(likes > 10)
|
||||
|> Ash.Query.sort([:title])
|
||||
|> MyApp.Api.read!()
|
||||
|
||||
MyApp.Author
|
||||
|> Query.aggregate(:published_post_count, :posts, filter: [published: true])
|
||||
|> Query.sort(published_post_count: :desc)
|
||||
|> Query.limit(10)
|
||||
|> Ash.Query.aggregate(:published_post_count, :posts, filter: [published: true])
|
||||
|> Ash.Query.sort(published_post_count: :desc)
|
||||
|> Ash.Query.limit(10)
|
||||
|> MyApp.Api.read!()
|
||||
|
||||
MyApp.Author
|
||||
|> Query.load([:post_count, :comment_count])
|
||||
|> Query.load(posts: [:comments])
|
||||
|> Ash.Query.load([:post_count, :comment_count])
|
||||
|> Ash.Query.load(posts: [:comments])
|
||||
|> MyApp.Api.read!()
|
||||
```
|
||||
"""
|
||||
|
||||
defstruct [
|
||||
:api,
|
||||
:resource,
|
||||
|
|
Loading…
Reference in a new issue