Skip to main content

compact

Removes null values from an array. Example: _fn @compact(refs: ["a", "b", "c"]) returns only the non-null values.

directive @compact(
ref: String
refs: [String!]
) on FIELD

Arguments

compact.ref ● String scalar

compact.refs ● [String!] list scalar