Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Insidexa/nestjs-graphql-cqrs
NestJS + GraphQL + CQRS + WS Subscriptions
https://github.com/Insidexa/nestjs-graphql-cqrs
apollo cqrs graphql nestjs subscription websocket
Last synced: 4 months ago
JSON representation
NestJS + GraphQL + CQRS + WS Subscriptions
- Host: GitHub
- URL: https://github.com/Insidexa/nestjs-graphql-cqrs
- Owner: Insidexa
- Created: 2019-07-14T11:59:43.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-12T01:43:53.000Z (almost 2 years ago)
- Last Synced: 2024-07-01T00:24:50.939Z (5 months ago)
- Topics: apollo, cqrs, graphql, nestjs, subscription, websocket
- Language: TypeScript
- Homepage:
- Size: 2.1 MB
- Stars: 12
- Watchers: 1
- Forks: 4
- Open Issues: 25
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Url localhost:3002/graphql
```graql
query authors {
authors {
id,
firstName,
lastName,
posts {
id,
title,
authorId,
description
}
}
}query author {
author(id:"c5d6594a-c615-4a00-963a-6300ad3e1dd4") {
id
}
}mutation addAuthor {
addAuthor(addAuthor: { firstName:"test", lastName:"test" })
}mutation addPost {
addPost(addPost: { title:"test secret p[so]", description:"asd", authorId:"c5d6594a-c615-4a00-963a-6300ad3e1dd4" })
}mutation removeAuthor {
removeAuthor(id:"uuid")
}
```subscription listen by websocket, return uuid
```graql
subscription testPubSub {
authorDeleted
}
```