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
/// Overload for GraphQLJSONEncoder to support generating a ``HummingbirdCore/Response`` from a GraphQLResult. Sets body, headers, and status, according to [GraphQL-over-HTTP spec](https://github.com/graphql/graphql-over-http/blob/main/spec/GraphQLOverHTTP.md#applicationgraphql-responsejson).
39
+
/// - Parameters:
40
+
/// - value: GraphQLResult to encode
41
+
/// - request: Request used to generate response
42
+
/// - context: Request context
43
+
func encode(_ value:GraphQLResult, from request:Request, context:someRequestContext)throws->Response{
44
+
varstatus=HTTPResponse.Status.ok
45
+
// We must return `bad request` with the content if there were failures preventing a partial result
0 commit comments