Skip to main content

cardinality

To annotate the valid cardinality for a field (i.e., how many elements are allowed). * min: the minimum allowed occurrences. * max: the maximum allowed occurrences.

directive @cardinality(
min: Int
max: Int
) on FIELD_DEFINITION

Arguments​

cardinality.min ● Int scalar​

cardinality.max ● Int scalar​