type
ScalarLiteral
ScalarLiteral stores a canonical string, finite number, or boolean operand for visibility conditions and relationship filters.
Properties
| Property | Type | Description |
|---|---|---|
Type | ValueType | The Type value. |
Value | string | The Value value. |
Full signature
type ScalarLiteral struct {
Type ValueType `json:"type"`
Value string `json:"value"`
}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".