graphql-ruby-client
Advanced tools
Comparing version 1.11.9 to 1.11.10
# graphql-ruby-client | ||
# 1.11.10 (17 Nov 2023) | ||
- `createRelaySubscriptionHandler`: Support Relay persisted queries with ActionCable #4705 | ||
# 1.11.9 (1 Sept 2023) | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "graphql-ruby-client", | ||
"version": "1.11.9", | ||
"version": "1.11.10", | ||
"description": "JavaScript client for graphql-ruby", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -15,2 +15,3 @@ import type { Consumer } from "@rails/actioncable"; | ||
channelName?: string; | ||
clientName?: string; | ||
} | ||
@@ -20,2 +21,3 @@ declare function createActionCableHandler(options: ActionCableHandlerOptions): (operation: { | ||
name: string; | ||
id?: string; | ||
}, variables: object, _cacheConfig: object, observer: { | ||
@@ -22,0 +24,0 @@ onError: Function; |
@@ -30,3 +30,4 @@ "use strict"; | ||
operationName: operation.name, | ||
query: operation.text | ||
query: operation.text, | ||
operationId: (operation.id && options.clientName ? (options.clientName + "/" + operation.id) : null), | ||
}; | ||
@@ -33,0 +34,0 @@ } |
@@ -20,3 +20,3 @@ "use strict"; | ||
else { | ||
throw new Error("Missing options for subscribtion handler"); | ||
throw new Error("Missing options for subscription handler"); | ||
} | ||
@@ -49,2 +49,3 @@ return handler; | ||
name: request.name, | ||
id: request.id, | ||
}, variables, {}, { | ||
@@ -51,0 +52,0 @@ onError: function (_error) { |
131151
2679