This project serves as a GraphQL wrapper for the existing GraphQL APIs, providing specific APIs used for Agricultural applications.
-
Clone the repository:
git clone https://github.com/Amoolya-Reddy/ResilientDB-Ag-GraphQL-Wrapper
-
Install Dependencies:
cd ResilientDB-Ag-GraphQL-Wrapper npm install
-
Start the GraphQL server:
npm start
-
Access the GraphQL Apollo Playground at http://localhost:4000 to explore and interact with the GraphQL API.
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)
Feel free to contribute by opening issues or submitting pull requests.
- Fork the project.
- Create your feature branch: git checkout -b feature/new-feature
- Commit your changes: git commit -m 'Add new feature'
- Push to the branch: git push origin feature/new-feature
- Open a pull request.