Skip to content

Commit 36e9315

Browse files
Merge pull request #230 from MacondoExpress/fix-limit-doc
Fix limit directive documentation
2 parents c804533 + 0f2d61e commit 36e9315

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

modules/ROOT/pages/directives/custom-logic.adoc

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ Available on nodes, this directive injects values into a query such as the `limi
310310
directive @limit(
311311
default: Int
312312
max: Int
313-
) on OBJECT
313+
) on OBJECT | INTERFACE
314314
----
315315

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

328328
[source, graphql, indent=0]
329329
----
330-
{
331-
Movie @limit(amount: 5) {
332-
title
333-
year
334-
}
330+
type Movie @limit(max: 100, default: 10) @node {
331+
id: ID
335332
}
336333
----
337334

0 commit comments

Comments
 (0)