Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/johnbiundo/bug-graphql-subscrip
https://github.com/johnbiundo/bug-graphql-subscrip
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/johnbiundo/bug-graphql-subscrip
- Owner: johnbiundo
- Created: 2020-03-23T19:37:06.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-11T22:27:01.000Z (about 2 years ago)
- Last Synced: 2024-11-10T15:50:50.762Z (2 months ago)
- Language: TypeScript
- Size: 678 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Issue
Adding a subscription triggered by a mutation; returns `data: null` in the subscription when a correct mutation succeeds.
## Install
Usual install `npm i`
## Subscription and Mutation queries
Once installed and running, you can reproduce the bug by subscribing as shown below and running the mutation shown below in the playground on `localhost:3000/graphql`
```gql
"""
subscription
"""subscription custAdd {
custAdded {
firstName
lastName
}
}"""
mutation
"""mutation addCustomer($cust: NewCustomer!)
{
addCustomer(newCustomer: $cust) {
id
firstName
lastName
}
}"""
input object for addCustomer mutation
"""{
"cust": {
"firstName": "Bill",
"lastName": "Jones",
"email": "[email protected]"
}
}
```