Skip to content

Commit

Permalink
Merge pull request #230 from MacondoExpress/fix-limit-doc
Browse files Browse the repository at this point in the history
Fix limit directive documentation
  • Loading branch information
MacondoExpress authored Jan 27, 2025
2 parents c804533 + 0f2d61e commit 36e9315
Showing 1 changed file with 3 additions and 6 deletions.
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

0 comments on commit 36e9315

Please sign in to comment.