function extractFieldPath(expr): FieldPath | null;
function extractFieldPath(expr): FieldPath | null;
Defined in: packages/db/src/query/expression-helpers.ts:107
Extracts the field path from a PropRef expression. Returns null for non-ref expressions.
BasicExpression
The expression to extract from
FieldPath | null
The field path array, or null
const field = extractFieldPath(someExpression)
// Returns: ['product', 'category']
const field = extractFieldPath(someExpression)
// Returns: ['product', 'category']
Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.
Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.
