Functions marked immutable or stable are available on the query type. Functions marked with the default volatile category are available on the mutation type:
Built-in GraphQL scalar types Int, Float, String, Boolean and custom scalar types are supported as function arguments and return types. Function types returning a table or view are supported as well. Such functions implement the Node interface:
Since Postgres considers a row/composite type containing only null values to be null, the result can be a little surprising in this case. Instead of an object with all columns null, the top-level field is null:
typeQuery{accountsByEmail(
emailToSearch: String"""Query the first `n` records in the collection"""
first: Int"""Query the last `n` records in the collection"""
last: Int"""Query values in the collection before the provided cursor"""
before: Cursor"""Query values in the collection after the provided cursor"""
after: Cursor"""Filters to apply to the results set when querying from the collection"""
filter: AccountFilter"""Sort order to apply to the collection"""
orderBy: [AccountOrderBy!]):AccountConnection}
A set returning function with any of its argument names clashing with argument names of a collection (first, last, before, after, filter, or orderBy) will not be exposed.
Default Arguments
Functions with default arguments can have their default arguments omitted.