Skip to main content

variable_defaults

Function variable_defaults 

Source
pub fn variable_defaults(
    definitions: &[VariableDefinition],
) -> Result<Vec<(String, Value)>>
Expand description

The declared defaults of an operation’s variables, decoded: (name, value) for each variable definition that declares one (GraphQL § 6.4.1).

§Errors

Returns FraiseQLError::Internal if a stored default is not valid JSON (see decode).