Skip to content

ResilientEcosystem/ResilientDB-Ag-GraphQL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ResilientDB-Ag-GraphQL

This project serves as a GraphQL wrapper for the existing GraphQL APIs, providing specific APIs used for Agricultural applications.

Table of Contents

Installation

  1. Clone the repository:

    git clone https://github.com/Amoolya-Reddy/ResilientDB-Ag-GraphQL-Wrapper
    
  2. Install Dependencies:

     cd ResilientDB-Ag-GraphQL-Wrapper
     npm install
    

Usage

  1. Start the GraphQL server:

     npm start
    
  2. Access the GraphQL Apollo Playground at http://localhost:4000 to explore and interact with the GraphQL API.

API Reference

In addition to the existing base APIs on the ResilientDB GraphQL server, the wrapper supports the addition of new queries and mutations below.

Query: getProductStages

  • Retrieves the list of stages through which a product progresses before reaching its final form.

      query {
        getProductStages(productName: String!) {
                        id
                        version
                        metadata
                        operation
                        asset
                        publicKey
                        uri
                        type
        }
        }
    
    

args: productName(Required)

Contributing

Feel free to contribute by opening issues or submitting pull requests.

  1. Fork the project.
  2. Create your feature branch: git checkout -b feature/new-feature
  3. Commit your changes: git commit -m 'Add new feature'
  4. Push to the branch: git push origin feature/new-feature
  5. Open a pull request.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published