Skip to content

Instantly share code, notes, and snippets.

bySabi Files bySabi

Block or report user

Report or block bySabi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
bySabi / Event-stream based GraphQL
Created May 11, 2016 — forked from OlegIlyenko/Event-stream based GraphQL
Event-stream based GraphQL subscriptions for real-time updates
View Event-stream based GraphQL

In this gist I would like to describe an idea for GraphQL subscriptions. It was inspired by conversations about subscriptions in the GraphQL slack channel and different GH issues, like #89 and #411.

Conceptual Model

At the moment GraphQL allows 2 types of queries:

  • query
  • mutation

Reference implementation also adds the third type: subscription. It does not have any semantics yet, so here I would like to propose one possible semantics interpretation and the reasoning behind it.

bySabi / gist:a4f5999693d5e1ebfa86a7a7987afc05
Created May 6, 2016
Minimal higher order React Component
View gist:a4f5999693d5e1ebfa86a7a7987afc05
const hoc = C => class _hoc extends React.Component {
render() {
return <C { ...this.props }/>;
const hoc = C => function _hoc(props) {
return <C { ...props }/>;
You can’t perform that action at this time.