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 17, 2018 in Blockchain by Christine
• 15,790 points
732 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 17, 2018 by Shashank
• 10,400 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 21, 2018 in Blockchain by Perry
• 17,100 points
1,595 views
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,451 views
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,740 points
1,004 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,400 points
812 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,400 points
3,768 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP