You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--| Errors that can happen while processing a query document.
@@ -74,7 +74,7 @@ instance GraphQLError QueryError where
74
74
75
75
--| Execute a GraphQL query.
76
76
executeQuery
77
-
::forallapim. (HasGraphmapi, Applicativem)
77
+
::forallapim. (HasResolvermapi, Applicativem)
78
78
=>Handlermapi--^ Handler for the query. This links the query to the code you've written to handle it.
79
79
->QueryDocumentVariableValue--^ A validated query document. Build one with 'compileQuery'.
80
80
->MaybeName--^ An optional name. If 'Nothing', then executes the only operation in the query. If @Just "something"@, executes the query named @"something".
Right operation -> toResult <$> resolve @m@api handler operation
88
87
where
89
88
toResult (Result errors result) =
90
89
case result of
@@ -99,7 +98,7 @@ executeQuery handler document name variables =
99
98
--
100
99
-- Compiles then executes a GraphQL query.
101
100
interpretQuery
102
-
::forallapim. (Applicativem, HasGraphmapi)
101
+
::forallapim. (Applicativem, HasResolvermapi)
103
102
=>Handlermapi--^ Handler for the query. This links the query to the code you've written to handle it.
104
103
->Text--^ The text of a query document. Will be parsed and then executed.
105
104
->MaybeName--^ An optional name for the operation within document to run. If 'Nothing', execute the only operation in the document. If @Just "something"@, execute the query or mutation named @"something"@.
@@ -119,7 +118,7 @@ interpretQuery handler query name variables =
119
118
--
120
119
-- Anonymous queries have no name and take no variables.
121
120
interpretAnonymousQuery
122
-
::forallapim. (Applicativem, HasGraphmapi)
121
+
::forallapim. (Applicativem, HasResolvermapi)
123
122
=>Handlermapi--^ Handler for the anonymous query.
124
123
->Text--^ The text of the anonymous query. Should defined only a single, unnamed query operation.
0 commit comments