https://github.com/sadabnepal/graphql-full-stack-kit
graphql development module for practising graphql testing
https://github.com/sadabnepal/graphql-full-stack-kit
apollo-server graphql-apollo graphql-testing graqhql nodejs testing
Last synced: 7 months ago
JSON representation
graphql development module for practising graphql testing
- Host: GitHub
- URL: https://github.com/sadabnepal/graphql-full-stack-kit
- Owner: sadabnepal
- Created: 2024-01-21T10:05:09.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-09-28T15:21:04.000Z (7 months ago)
- Last Synced: 2025-09-28T17:37:39.631Z (7 months ago)
- Topics: apollo-server, graphql-apollo, graphql-testing, graqhql, nodejs, testing
- Language: TypeScript
- Homepage:
- Size: 3.44 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## GraphQL Code
### Clone Repository
```bash
git clone https://github.com/sadabnepal/graphql-full-stack-kit.git
cd graphql-full-stack-kit
```
### Pre-requisite
[](https://nodejs.org/en/download/)
### Install Packages
```
npm install
```
### Start Server
```
npm start
```
### Graphical View
```
http://localhost:8000/graphql
```
### GraphQl Server

### Sample Query:
```
query Burger($name: String!, $vegan: Boolean!) {
burger (name: $name) {
id
name
tomato
cheese @skip(if: $vegan)
inStock
price
}
}
variable
{
"vegan": false,
"name": "Veggie Delight"
}
```
```
query {
burgers(where: {vegan: true, inStock: true}) {
calories
vegan
cheese
description
name
}
}
```
### TODO:
- Implement auth in mutation and implement same response format
- Enhance unit tests, query and mutation data to be reusable
- Open Source GraphQL playground https://apis.guru/graphql-apis
- Refer https://hygraph.com/blog/graphql-vs-rest-apis
