Skip to main content

functions_for

Function functions_for 

Source
pub fn functions_for(
    object: &TableObjectType,
) -> Vec<(&'static str, Returns, Vec<String>)>
Expand description

The columns each aggregate function applies to, for one table.

Returns (function, returns, columns) and omits any function with no column to apply it to – a GraphQL type may not have zero fields, so a table of nothing but text has no sum type at all rather than an empty one.