We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ee36d0 commit 34d9be4Copy full SHA for 34d9be4
1 file changed
src/service.js
@@ -24,6 +24,7 @@ module.exports = function (mixinOptions) {
24
serverOptions: {},
25
createAction: true,
26
subscriptionEventName: "graphql.publish",
27
+ invalidateEventName: "graphql.invalidate",
28
autoUpdateSchema: true,
29
checkActionVisibility: false,
30
});
@@ -52,6 +53,9 @@ module.exports = function (mixinOptions) {
52
53
},
54
55
events: {
56
+ [mixinOptions.invalidateEventName]() {
57
+ this.invalidateGraphQLSchema();
58
+ },
59
"$services.changed"() {
60
if (mixinOptions.autoUpdateSchema) {
61
this.invalidateGraphQLSchema();
0 commit comments