Add this to fields in queries to substitute a value in case the field fetching for some reason fails. Only one of string, int, float, boolean, id or null can be set.

Examples:

a) Substitute the empty string if fetching the description fields fails.

model {
    publication {
        description @onError(string:"")
    }
}

b) Substitute the empty string if fetching the description fields fails, and use substituted values for all fields if fetching the publication field fails.

model {
    publication @onError {
        description @onError(string:"")
    }
}

@internal

GraphQL Schema definition

Require by

This element is not required by anyone