Skip to content

Releases: mrspartak/hasura-om

Deps version bumps

15 Feb 05:17
66df6b2
Compare
Choose a tag to compare
1.4.6

Merge pull request #54 from mrspartak/dependabot/npm_and_yarn/prettie…

Deps version bumps

06 Jul 04:58
Compare
Choose a tag to compare

Deps version bumps

15 Jun 07:17
8770bb7
Compare
Choose a tag to compare

Deps version bumps

08 Jun 08:09
629d47d
Compare
Choose a tag to compare

Security bump try #2

05 Jun 19:24
b4372d9
Compare
Choose a tag to compare

Security bump

05 Jun 18:35
b4372d9
Compare
Choose a tag to compare

Pass hasura session vars to query/mutation

03 Jun 07:06
Compare
Choose a tag to compare

This release allows you to pass headers to special requests. For example if you want to check user's permissions etc.

orm.query({
  message: {
    insert: {
      objects: {
        chat_id: 1,
        message: 'hey'
      }
    }
  }
}, { getFirst: true }, {
  headers: {
    'X-Hasura-User-ID': 1,
    'X-Hasura-Role': 'user',
  }
})

Renamed subscribeToMore - queryAndSubscribe

30 May 17:37
Compare
Choose a tag to compare

Because it is a query and then subscribe to get immediate data

Hasura:subscribeToMore

30 May 11:54
Compare
Choose a tag to compare

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

webSocketImpl for broser support

30 May 10:26
Compare
Choose a tag to compare

To subscribe in browser user

const orm = new Hasura({
  ...,
  wsConnectionSettings: {
    webSocketImpl:  WebSocket
  }
})