type

ScalarLiteral

ScalarLiteral stores a canonical string, finite number, or boolean operand for visibility conditions and relationship filters.

Properties

PropertyTypeDescription
TypeValueTypeThe Type value.
ValuestringThe Value value.

Full signature

type ScalarLiteral struct { Type ValueType `json:"type"` Value string `json:"value"` }

Source schema/scalar_literal.go:13

Methods

  • 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".