Skip to content
CCPEDIAby Unity Nodes
App Development

Fetch by query in DAML templates

3 posts248 viewsLast activity Mar 2022

  1. gtpaulose1OP

    Is there an equivalent function to queryFilter while fetching contracts within a template choice?

  2. Sofia_Faro

    Hi @gtpaulose1,

    There is not. In an Update context, you can only fetch by contract id, fetch by key, or lookup by key.

  3. gtpaulose1

    Is this is in the roadmao? Smart contract automation becomes very cumbersome otherwise because i have to use an off-chain API to perform the query before interacting with a choice