MCPcopy Index your code
hub / github.com/TanStack/db / extractFieldPath

Function extractFieldPath

packages/db/src/query/expression-helpers.ts:107–112  ·  view source on GitHub ↗
(expr: BasicExpression)

Source from the content-addressed store, hash-verified

105 * ```
106 */
107export function extractFieldPath(expr: BasicExpression): FieldPath | null {
108 if (expr.type === `ref`) {
109 return expr.path
110 }
111 return null
112}
113
114/**
115 * Extracts the value from a Value expression.

Callers 2

parseOrderByExpressionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected