diff --git a/dist/index.js b/dist/index.js index 8640e70..e109a3a 100644 --- a/dist/index.js +++ b/dist/index.js @@ -32,7 +32,7 @@ export class TetherClient { sendMutation = (mutationName, params) => { this.websocketHandler.send(JSON.stringify({ type: 'mutation', - name: mutationName, + location: mutationName, params: params, })); }; diff --git a/src/index.ts b/src/index.ts index d53b329..2ff1685 100644 --- a/src/index.ts +++ b/src/index.ts @@ -37,7 +37,7 @@ export class TetherClient { sendMutation = (mutationName: string, params: any) => { this.websocketHandler.send(JSON.stringify({ type: 'mutation', - name: mutationName, + location: mutationName, params: params, })); };