graphql-extensions
Advanced tools
Comparing version 0.5.7 to 0.6.0-alpha.0
@@ -28,2 +28,5 @@ import { GraphQLSchema, GraphQLField, GraphQLFieldResolver, GraphQLResolveInfo, ExecutionArgs, DocumentNode } from 'graphql'; | ||
}): EndHandler | void; | ||
didResolveOperation?(o: { | ||
requestContext: GraphQLRequestContext<TContext>; | ||
}): void; | ||
willSendResponse?(o: { | ||
@@ -66,2 +69,5 @@ graphqlResponse: GraphQLResponse; | ||
}): EndHandler; | ||
didResolveOperation(o: { | ||
requestContext: GraphQLRequestContext<TContext>; | ||
}): void; | ||
willSendResponse(o: { | ||
@@ -68,0 +74,0 @@ graphqlResponse: GraphQLResponse; |
@@ -28,2 +28,9 @@ "use strict"; | ||
} | ||
didResolveOperation(o) { | ||
this.extensions.forEach(extension => { | ||
if (extension.didResolveOperation) { | ||
extension.didResolveOperation(o); | ||
} | ||
}); | ||
} | ||
willSendResponse(o) { | ||
@@ -30,0 +37,0 @@ let reference = o; |
{ | ||
"name": "graphql-extensions", | ||
"version": "0.5.7", | ||
"version": "0.6.0-alpha.0", | ||
"description": "Add extensions to GraphQL servers", | ||
@@ -20,4 +20,4 @@ "main": "./dist/index.js", | ||
"devDependencies": { | ||
"apollo-server-core": "2.4.8", | ||
"apollo-server-env": "2.2.0" | ||
"apollo-server-core": "2.5.0-alpha.0", | ||
"apollo-server-env": "2.3.0-alpha.0" | ||
}, | ||
@@ -27,3 +27,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "046327068b5cbb2d80c3865cdb2566654ea988c9" | ||
"gitHead": "77192d647901443df54762544d2528eb8aab24ed" | ||
} |
@@ -52,2 +52,6 @@ import { | ||
public didResolveOperation?(o: { | ||
requestContext: GraphQLRequestContext<TContext>; | ||
}): void; | ||
public willSendResponse?(o: { | ||
@@ -112,2 +116,12 @@ graphqlResponse: GraphQLResponse; | ||
public didResolveOperation(o: { | ||
requestContext: GraphQLRequestContext<TContext>; | ||
}) { | ||
this.extensions.forEach(extension => { | ||
if (extension.didResolveOperation) { | ||
extension.didResolveOperation(o); | ||
} | ||
}); | ||
} | ||
public willSendResponse(o: { | ||
@@ -114,0 +128,0 @@ graphqlResponse: GraphQLResponse; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31782
577