Skip to content

Hasura:subscribeToMore

Compare
Choose a tag to compare
@mrspartak mrspartak released this 30 May 11:54
· 89 commits to master since this release

Under the hood it makes usual graphql request and then subscribing to new data, skipping first response.

const unsubscribe = this.$orm.subscribeToMore({
  project: {
    fragment: 'list'
  }
}, ([err, response]) => {
//do stuff
}, { skipFirst: false }) //skipFirst = false means you also get first result from subscription