Where is query displayed in Hyperledger?

0 votes

In hyperledger composer where the result of query is displayed? And why we need a separate file when we can query in js file.

Aug 16, 2018 in Blockchain by Christine
• 15,790 points
123 views

1 answer to this question.

0 votes

Composer configures the named queries for a business network in a source file called queries.qry

See more here -> https://hyperledger.github.io/composer/business-network/query.html

The results can be seen by running composer-rest-server after you've deployed a network with defined queries - these queries are exposed as REST API endpoints.

Check out the tutorial for an example of defining, then testing queries to see results -> https://hyperledger.github.io/composer/tutorials/queries.html

Specifically the section 'Test the Trading REST APIs and create some data'

answered Aug 16, 2018 by Shashank
• 10,350 points

Related Questions In Blockchain

+1 vote
1 answer
+16 votes
4 answers
+1 vote
1 answer

How immutability is achieved in hyperledger fabric?

Since it is a private blockchain platform, ...READ MORE

answered Apr 20, 2018 in Blockchain by Perry
• 17,020 points
336 views
0 votes
1 answer
0 votes
1 answer

Invalid Batch or signature in Savtooth

This will solve your problem import org.apache.commons.codec.binary.Hex; Transaction txn ...READ MORE

answered Aug 1, 2018 in Blockchain by digger
• 26,550 points
83 views
+1 vote
1 answer
0 votes
1 answer

Where are the transaction details of a smart contract is written in Ethereum?

First ques:where in the blockchain is a ...READ MORE

answered Jul 11, 2018 in Blockchain by Shashank
• 10,350 points
46 views
+1 vote
3 answers

How efficient is Ethereum in regard to its TPS??

TPS means transactions processing at any given ...READ MORE

answered Apr 16, 2018 in Blockchain by Shashank
• 10,350 points
1,369 views