method
ScalarLiteral.Decode
Decode validates the literal and returns its immutable query value. Numbers retain Go's floating-point parsing rules; booleans must be "true" or "false".
Returns
The declared result.
(query.Value, error)Full signature
func (literal ScalarLiteral) Decode() (
query.Value,
error,
)Related types
ScalarLiteralScalarLiteral stores a canonical string, finite number, or boolean operand for visibility conditions and relationship filters.
ValueAn immutable scalar or list comparison operand.