TanStackT
TanStack3mo ago
5 replies
endless-jade

What is the proper pattern for capturing a one to many (1:*) relationship with useLiveQuery?

Let's say you have a list collection and a tasks collection. One collection has many tasks. How can I return something like the following from useLiveQuery?

{
  ...list,
  tasks: [...tasks]
}
Was this page helpful?