Files
2026-07-22 19:38:36 +08:00

519 B

value

API Definition

def value(path: str, default: Any = None) -> SerializableKey

Source: ql.py

Import Surface

  • submodule: from simplecadapi.ql import value or simplecadapi.ql.value

Description

Build a value key extractor for ordering and projection in QL.

Parameters

path

  • Description: Property or metadata path to resolve.

default

  • Description: Fallback value when the path is missing.

Returns

Serializable key function for Query.order_by(...).