https://github.com/tutods/dowhile-graphql
Rocketseat Experts Club video building an simple API with GraphQL, NodeJS, TypeScript, Apollo Server and TypeGraphQL
https://github.com/tutods/dowhile-graphql
api apollo-server apollographql graphql mongodb mongoose node nodejs typegraphql typescript
Last synced: 17 days ago
JSON representation
Rocketseat Experts Club video building an simple API with GraphQL, NodeJS, TypeScript, Apollo Server and TypeGraphQL
- Host: GitHub
- URL: https://github.com/tutods/dowhile-graphql
- Owner: tutods
- Created: 2021-08-06T17:07:11.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-06-17T02:17:55.000Z (11 months ago)
- Last Synced: 2025-04-13T09:13:37.152Z (17 days ago)
- Topics: api, apollo-server, apollographql, graphql, mongodb, mongoose, node, nodejs, typegraphql, typescript
- Language: TypeScript
- Homepage:
- Size: 432 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
API with GraphQL, NodeJS and TypeScript
This repo are creating following the Rocketseat Experts Club video
(collection of
DoWhile
2020).
🗒 Changes
- Implementing the relation on get list of videos.
⭐️ Examples of Queries & Mutations
**1. Get Categories**
```
query Categories {
categories {
_id,
name
}
}
```**2. Create Category**
```
mutation {
createCategory(categoryInput: {
name: "Name of my category",
description: "Category description"
}) {
name,
_id
}
}
```**3. Get Videos**
```
query Videos {
videos {
name,
category {
name
}
}
}
```**4. Create Video**
```
mutation {
createVideo(videoInput: {
name: "Name of my video",
description: "Description of my video",
category: ""
}) {
_id,
name
}
}
```