Hello,
i am using the useStreamQueries hook from @daml/react and I need to do a query using one interface that is child of another.
On that child interface i get only some partial part of the data that i need and i can use the queryFactory to filter the data. On the parent one there is the rest of the info that i need, but i cannot make use of the queryFactory to filter the data the way i need because that filter is not available on that interface.
My question would be, is there any possible way to achieve this without having to change the interfaces?
I could query both and then making use of Array.filter() and filter down by the contractID. But i would like to avoid to do 2 queries.
Any help or suggestion would be appreciated.
Thank you