Skip to content

Commit

Permalink
Merge pull request #136 from jeddeloh/missing-name-on-operationdefini…
Browse files Browse the repository at this point in the history
…tionnode

Account for missing name on OperationDefinitionNode
  • Loading branch information
jeddeloh authored Dec 23, 2021
2 parents 2c17c20 + 49b41ad commit a2697fa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions EXAMPLES/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"start": "bsb -make-world -w"
},
"devDependencies": {
"@reasonml-community/graphql-ppx": "1.0.0",
"@reasonml-community/graphql-ppx": "1.2.2",
"bs-platform": "9.0.0",
"graphql-client-example-server": "1.2.0",
"html-webpack-plugin": "4.3.0",
Expand All @@ -19,14 +19,14 @@
"webpack-dev-server": "3.11.0"
},
"dependencies": {
"@apollo/client": "3.3.21",
"@apollo/client": "3.5.6",
"@rescript/react": "0.10.1",
"@ryyppy/rescript-promise": "0.0.2",
"graphql": "15.3.0",
"react": "16.13.1",
"react-dom": "16.13.1",
"reason-promise": "1.1.1",
"rescript-apollo-client": "2.4.0",
"rescript-apollo-client": "../",
"subscriptions-transport-ws": "0.9.16"
}
}
2 changes: 1 addition & 1 deletion EXAMPLES/src/hooksUsage/Query_SubscribeToMore.res
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ let make = () => {
* Sorry, this example is nonsensical given the current schema, but I'm gonna proceed anyway
")
React.useEffect0(() => {
queryResult.subscribeToMore(
let _unsubscribe = queryResult.subscribeToMore(
~subscription=module(SorryItsNotASubscriptionForTodos),
~updateQuery=(previous, {subscriptionData: {data: {siteStatisticsUpdated}}}) => {
let count =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ module OperationDefinitionNode = {
type t = {
kind: string,
loc: option<Location.t>,
name: NameNode.t,
name: option<NameNode.t>,
operation: OperationTypeNode.t,
variableDefinitions: option<array<VariableDefinitionNode.t>>,
directives: option<array<DirectiveNode.t>>,
Expand Down

0 comments on commit a2697fa

Please sign in to comment.