NestedQueryRecord
Defined in: query-fixtures.ts:20
Shared conformance fixture for nested-path + $contains querying (D-7).
Adapters that support dot-path field names and the $contains operator run
these cases in their specs so every implementation agrees on semantics.
@mantlejs/memory is the executable reference: it seeds
NESTED_QUERY_RECORDS and asserts each case returns expectedIds.
Translator-style adapters (e.g. @mantlejs/supabase, which is specced
against a mocked client) feed each case’s where through their translator
and assert the emitted backend calls.
Semantics (mirrors PostgreSQL jsonb @> containment):
- Dot-path keys (
"metadata.owner.name") address nested fields. $containswith an array operand: the field array contains every element.$containswith a scalar operand: the field array contains that element.$containswith an object operand: the field object is a superset (recursively) of the operand.
Extends
Section titled “Extends”Record<string,unknown>
Indexable
Section titled “Indexable”[
key:string]:unknown
Properties
Section titled “Properties”id:
string
Defined in: query-fixtures.ts:21
metadata
Section titled “metadata”metadata:
object
Defined in: query-fixtures.ts:24
level:
number
owner:
object
owner.name
Section titled “owner.name”name:
string
tags:
string[]
name:
string
Defined in: query-fixtures.ts:22
tags:
string[]
Defined in: query-fixtures.ts:23