Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
}
```