Skip to content

Commit

Permalink
renamed sub2more - queryAndSubscribe
Browse files Browse the repository at this point in the history
  • Loading branch information
mrspartak committed May 30, 2020
1 parent 52ff696 commit a4636d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/orm/hasura.js
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ class Hasura {
return unsub; // Unsubscribe
}

async subscribeToMore(parameters, callback, settings = {}) {
async queryAndSubscribe(parameters, callback, settings = {}) {
settings = __.mergeDeep(
{
skipFirst: true,
Expand Down
6 changes: 3 additions & 3 deletions tests/subscription.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ test.serial('subscribe to more returns unsub', (t) => {
const orm = t.context.orm;

return new Promise(async (resolve) => {
const unsub = await orm.subscribeToMore(
const unsub = await orm.queryAndSubscribe(
{
_om_test: {},
},
Expand All @@ -265,7 +265,7 @@ test.serial('subscribe to more works', (t) => {
const orm = t.context.orm;

return new Promise(async (resolve) => {
const unsub = await orm.subscribeToMore(
const unsub = await orm.queryAndSubscribe(
{
_om_test: {},
},
Expand Down Expand Up @@ -300,7 +300,7 @@ test.serial('subscribe to more skipFirst', (t) => {
const orm = t.context.orm;

return new Promise(async (resolve) => {
const unsub = await orm.subscribeToMore(
const unsub = await orm.queryAndSubscribe(
{
_om_test: {},
},
Expand Down

0 comments on commit a4636d6

Please sign in to comment.