Skip to content

Commit a2697fa

Browse files
authored
Merge pull request #136 from jeddeloh/missing-name-on-operationdefinitionnode
Account for missing name on OperationDefinitionNode
2 parents 2c17c20 + 49b41ad commit a2697fa

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

EXAMPLES/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"start": "bsb -make-world -w"
1111
},
1212
"devDependencies": {
13-
"@reasonml-community/graphql-ppx": "1.0.0",
13+
"@reasonml-community/graphql-ppx": "1.2.2",
1414
"bs-platform": "9.0.0",
1515
"graphql-client-example-server": "1.2.0",
1616
"html-webpack-plugin": "4.3.0",
@@ -19,14 +19,14 @@
1919
"webpack-dev-server": "3.11.0"
2020
},
2121
"dependencies": {
22-
"@apollo/client": "3.3.21",
22+
"@apollo/client": "3.5.6",
2323
"@rescript/react": "0.10.1",
2424
"@ryyppy/rescript-promise": "0.0.2",
2525
"graphql": "15.3.0",
2626
"react": "16.13.1",
2727
"react-dom": "16.13.1",
2828
"reason-promise": "1.1.1",
29-
"rescript-apollo-client": "2.4.0",
29+
"rescript-apollo-client": "../",
3030
"subscriptions-transport-ws": "0.9.16"
3131
}
3232
}

EXAMPLES/src/hooksUsage/Query_SubscribeToMore.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ let make = () => {
2626
* Sorry, this example is nonsensical given the current schema, but I'm gonna proceed anyway
2727
")
2828
React.useEffect0(() => {
29-
queryResult.subscribeToMore(
29+
let _unsubscribe = queryResult.subscribeToMore(
3030
~subscription=module(SorryItsNotASubscriptionForTodos),
3131
~updateQuery=(previous, {subscriptionData: {data: {siteStatisticsUpdated}}}) => {
3232
let count =

src/graphql/language/ApolloClient__Graphql_Language_Ast.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ module OperationDefinitionNode = {
172172
type t = {
173173
kind: string,
174174
loc: option<Location.t>,
175-
name: NameNode.t,
175+
name: option<NameNode.t>,
176176
operation: OperationTypeNode.t,
177177
variableDefinitions: option<array<VariableDefinitionNode.t>>,
178178
directives: option<array<DirectiveNode.t>>,

0 commit comments

Comments
 (0)