Skip to content
Merged
Changes from all commits
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
9 changes: 3 additions & 6 deletions modules/ROOT/pages/directives/custom-logic.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ Available on nodes, this directive injects values into a query such as the `limi
directive @limit(
default: Int
max: Int
) on OBJECT
) on OBJECT | INTERFACE
----

=== Usage
Expand All @@ -327,11 +327,8 @@ If no `default` value is set, `max` is used for queries without limit.

[source, graphql, indent=0]
----
{
Movie @limit(amount: 5) {
title
year
}
type Movie @limit(max: 100, default: 10) @node {
id: ID
}
----

Expand Down
Loading