Skip to main content

encode

Function encode 

Source
pub fn encode(value: &Value<'_, String>) -> Result<String>
Expand description

Build the JSON representation of a parsed GraphQL argument value.

ยงErrors

Returns FraiseQLError::Validation if the value nests deeper than MAX_DEPTH. Serialization itself cannot fail: every GraphQL value has a JSON counterpart.