f / f/graphql.js

Better Subscription

Open
#6 10 comments 3 reactions 1 assignee Claimed by @f View on GitHub
enhancement
Dominant language
JavaScript
Stars
2.3k
Forks
88
PR merge metrics
No merged PRs in 30d

Description

Subscriptions need to be implemented.

They can be that easy:
```js
var onCommentsAdded = graph.subscribe`{ commendAdded { user {name}, text } }`

onCommentsAdded(function (data) {
console.log(data.user.name)
})
```

And can be unsubscribed.
```js
var onCommentsAdded = graph.subscribe`{ commendAdded { user {name}, text } }`

onCommentsAdded.unsubscribe()
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.