Skip to main content

flatten

Combines several referenced arrays into one flat list. Each referenced value that is a list contributes its elements; a non-list value contributes itself as a single item. Example: _fn @flatten(refs: ["a", "b"]) with a=[1,2] and b=3 returns [1, 2, 3].

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

Arguments

flatten.ref ● String scalar

flatten.refs ● [String!] list scalar