Tools, FAQ, Tutorials:
Hyperledger Composer Access Query File
What Is Hyperledger Composer Query File (*.qry)?
✍: FYIcenter.com
A Hyperledger Composer Query file is a source code file that define queries to retrieve business objects from the Business Network.
A access control file uses the Query language and the .qry file extension. Here is an example of an query file from the Fund Clearing Network, queries.qry:
/** * Queries for Fund Clearing */ query TransferRequestsByBankInState { description: "Select all TransferRequests for a participating bank in a given state" statement: SELECT org.clearing.TransferRequest WHERE (fromBank == _$bank) } query TransferRequestsByBanksInState { description: "Select all TransferRequests for a participating bank in a given state" statement: SELECT org.clearing.TransferRequest WHERE ((fromBank == _$bank1 AND toBank == _$bank2 AND state == _$state) OR (fromBank == _$bank2 AND toBank == _$bank1 AND state == _$state)) } query BatchTransferRequestById { description: "Select a BatchTransferRequest by the UUID" statement: SELECT org.clearing.BatchTransferRequest WHERE (_$batchId == batchId) } query BatchTransferRequestsByBankInState { description: "Select all BatchTransferRequests in a given state for a participating bank" statement: SELECT org.clearing.BatchTransferRequest WHERE ((parties CONTAINS _$party) AND (state == _$state)) } query BatchTransferRequestForBanksInState { description: "Select all BatchTransferRequests in a given state for two participating banks" statement: SELECT org.clearing.BatchTransferRequest WHERE ((parties CONTAINS [_$bank1, _$bank2]) AND (state == _$state)) }
Â
⇒ Business Network Archive (BNA) File
⇠Hyperledger Composer Access Control File
2020-11-22, 957🔥, 0💬
Popular Posts:
How to use the Atom Online Validator at w3.org? w3.org feed validation service is provided at http:/...
Where to find tutorials on Using Azure API Management Developer Portal? Here is a list of tutorials ...
How to add request URL Template Parameters to my Azure API operation to make it more user friendly? ...
How to add request query string Parameters to my Azure API operation 2017 version to make it more us...
How to use .NET CLR Types in Azure API Policy? By default, Azure imports many basic .NET CLR (Common...