This project is a simple test application built to understand how to use Apollo Client with TheGraph to query data from a GraphQL API. It demonstrates querying different types of data and displaying it in a React application.
-
Clone the repository to your local machine:
git clone https://github.com/banasa44/subgraph_query_sample
-
Navigate to the project directory:
cd subgraph_queries
-
Install dependencies:
yarn
-
Start the development server:
yarn start
-
Open your browser and visit http://localhost:3000 to view the application.
-
Use the dropdown menu to select a query and enter any required parameters in the input fields.
-
Click on the "Display" button to see the results.
The application includes the following predefined queries:
- GET_PERMISSIONS_SUBDOMAIN: Retrieve permissions based on subdomain.
- PERMISSIONS_DAO: Retrieve permissions for a specific DAO.
- GET_DAOS: Retrieve information about DAOs.
- BALANCES_TOKEN_SUBDOMAIN: Retrieve balances by token and subdomain.
- BALANCES_DAO_TOKEN: Retrieve balances for a specific token.
- React
- Apollo Client
- GraphQL
- TheGraph
Contributions are welcome! Please feel free to open a new issue or submit a pull request for any improvements or bug fixes.
This project is licensed under the MIT License - see the LICENSE file for details.