Skip to content

Commit

Permalink
Merge pull request #231 from neo4j/backport/6.x/pr-230
Browse files Browse the repository at this point in the history
[Cherry-pick][6.x] Merge pull request #230 from MacondoExpress/fix-limit-doc
  • Loading branch information
rsill-neo4j authored Jan 27, 2025
2 parents f4f3a97 + 75233dc commit fd4465b
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 fd4465b

Please sign in to comment.