Reputation: 660
The documentation gives these examples of query definitions. My understanding is items starting with _$
are parameters you can pass to the query.
The only examples I can find of the Query()
function inside the transaction processors do not provide parameters.
How can I pass params to my query?
Ala let result = Query('MyGreatQueryReqParam`, name = "john");
Upvotes: 0
Views: 174
Reputation: 5570
As answered on Rocket Chat ...
The buildQuery and Query() methods are covered with examples at the bottom of this doc: https://hyperledger.github.io/composer/latest/api/runtime-api But the short answer is:
return query('Q1', { inputValue: 'blue' })
Upvotes: 1