# \#nodejs

**URL:** https://forum.canton.network/tag/nodejs/8.md

[Latest](https://forum.canton.network/latest.md) · [Categories](https://forum.canton.network/categories.md) · [Tags](https://forum.canton.network/tags.md)

---

## [useQuery in the @daml/react library, forces me to pass in a template](https://forum.canton.network/t/usequery-in-the-daml-react-library-forces-me-to-pass-in-a-template/296)

<div class="topic-metadata">

**Author:** [@chris.norris](https://forum.canton.network/u/chris.norris)\
**Replies:** 3\
**Last updated:** [April 30, 2020, 8:32am UTC](https://forum.canton.network/t/usequery-in-the-daml-react-library-forces-me-to-pass-in-a-template/296 "2020-04-30T08:32:37Z")

</div>

I need to retrieve all contracts visible to a party on the ledger using the recommended path (which means getting @daml/react from npm), but the only suitable function available there is useQuery, which forces me to pass…
