Graphql CRUD example for learning
- Typescript
- GraphQL : type-graphql
- ORM : typeorm
mutation{
createNote(
options: {
title: "Title",
content: "Note Content"
}
) {
id
title
content
created_at
}
}
query{
notes {
id
title
content
created_at
}
}
query {
note(id: 42) {
id
title
content
created_at
}
}
mutation{
updateNote(
id: 42
options: {
title: "Title"
content: "New Project"
}
)
}
mutation {
deleteNote(id: 42)
}
MIT 🥰🤑