Skip to content

toRpcSelect(selection?): RpcSelect

Defined in: src/query/selection.ts:258

Converts a selection into the RPC select object — the same request projectSelection makes without a schema.

Every field is opt-in — anything not explicitly selected is sent as false, including the key. Sending the full object rather than omitting the falses keeps what the SDK asked for legible in a request log, and pins the answer even if a node’s defaults change.

undefined or "*" selects everything.

SelectArg

RpcSelect

If the selection asks for nothing, or names an attribute outside the name grammar.

toRpcSelect() // everything
toRpcSelect({ $key: true }) // only the key
toRpcSelect({ $key: true, projectId: true }) // the key and one attribute