axios-graphql-builder
About
A light weight library to generate Axios`s GraphQL query from JSON.
Installation
Local installation
npm install axios-graphql-builder --save
Functionality Available
Syntax | Parameter * | Output |
buildQuery | JSON Object*, Param (Optional) | GraphQL Query for Axios |
*Note: Last child in JSON object hierarchy should be assigned null value
Usage
Once installed in your project. It can be used as:
Example: import
Output
- buildQuery: Return a GraphQl Query which can be directly passed into Axios.
Contact
- Author: Subhendu Kumar Sahoo
- Email: smaro.nitr@gmail.com
- Website: https://smaro-nitr.github.io
- Always welcome for a bugfix, feature suggestion, and feedback