https://github.com/pooltogether/graphql-query-template
Template repository to kickstart a project to query GraphQL endpoints
https://github.com/pooltogether/graphql-query-template
Last synced: 21 days ago
JSON representation
Template repository to kickstart a project to query GraphQL endpoints
- Host: GitHub
- URL: https://github.com/pooltogether/graphql-query-template
- Owner: pooltogether
- Created: 2022-03-21T20:34:21.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-21T22:23:06.000Z (about 4 years ago)
- Last Synced: 2025-04-25T04:03:29.440Z (about 1 year ago)
- Language: TypeScript
- Size: 7.81 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# graphql-query-template
Template repository to kickstart a project to query GraphQL endpoints.
## Development
This template uses [graphql-request](https://www.npmjs.com/package/graphql-request) to query GraphQL endpoints.
### GraphQL Request
An example query is available in `request.ts`. Run it with:
```
yarn start
```
### Code quality
[Prettier](https://prettier.io) is used to format TypeScript code. Use it by running:
```
yarn format
```
Or per file:
```
yarn format:file request.ts
```