https://github.com/nyaomaru/graphql-sample
GraphQL with apollo server sample repository
https://github.com/nyaomaru/graphql-sample
appolo-graphql-server appolo-server graphql-server
Last synced: 4 months ago
JSON representation
GraphQL with apollo server sample repository
- Host: GitHub
- URL: https://github.com/nyaomaru/graphql-sample
- Owner: nyaomaru
- Created: 2024-06-07T23:30:08.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-11T23:56:30.000Z (over 1 year ago)
- Last Synced: 2025-06-12T02:06:45.719Z (12 months ago)
- Topics: appolo-graphql-server, appolo-server, graphql-server
- Language: TypeScript
- Homepage:
- Size: 151 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# graphql_sample
Graphql sample repository
## 🚀 Get started
Run apollo server.
```sh
pnpm i && pnpm start
```
Then, you can request the query for `http://localhost:4000` with some tools like Apollo Sandbox.
[Apllo Sandbox](https://studio.apollographql.com/sandbox/explorer/?_gl=1%2A16er0h%2A_ga%2AMTIwMDgyOTQwOS4xNzE3ODAzMTgy%2A_ga_0BGG5V2W2K%2AMTcxNzgwMzE4Mi4xLjEuMTcxNzgwMzc5NC4wLjAuMA..)
### Codegen
After running server, you can run below command to create schema type definition.
```sh
pnpm codegen
```
Then, the `./arc/generated/graphql.ts` is generated.