Skip to main content

coalesce

Returns the first non-null value from the referenced fields. Example: _fn @coalesce(refs: ["a.aa", "b.bb"]) returns the referenced value of 'a' if non-null, otherwise the value referenced by 'b.bb'.

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

Arguments

coalesce.ref ● String scalar

coalesce.refs ● [String!] list scalar