Is it possible to query a child interface an get at the same time the parent one using @daml/react?

Hello MaximTimeClock@Joao_Freitas ,

In @daml/react, the useStreamQueries hook is designed to query contracts based on a template or interface. If you need to query a child interface and simultaneously get information from the parent interface, you would typically need to perform two separate queries because each query is specific to a template or interface.

However, there might be a way to streamline this process without altering the interfaces. One approach could be to use the results from the child interface query to inform a subsequent query on the parent interface. This would involve using the contract IDs or keys obtained from the first query as parameters in the second query.

Best Regards

1 Like