Querying by object field in array #1022
Answered
by
KyleAMathews
Nick-Motion
asked this question in
Q&A
-
|
Is it possible to Example: // in aCollection
const a = {
b: [{ queryMe: '1234' }],
}
useLiveQuery((q) =>
q.from({ a: aCollection }).where(({ a }) =>
inArray(
{ queryMe: '1234' }, // doesn't work
a.b
)
)
) |
Beta Was this translation helpful? Give feedback.
Answered by
KyleAMathews
Dec 15, 2025
Replies: 1 comment
-
|
See this writeup https://github.com/TanStack/db/blob/27531763ecbb42a46ad57f544d595ec431fb467e/.claude/answers/discussion-1022.md |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Nick-Motion
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See this writeup https://github.com/TanStack/db/blob/27531763ecbb42a46ad57f544d595ec431fb467e/.claude/answers/discussion-1022.md