@common-stack/server-core
Advanced tools
Comparing version
import { GraphQLRequestContext, type GraphQLRequestContextWillSendResponse } from '@apollo/server'; | ||
import { Container, interfaces } from 'inversify'; | ||
import type { Express } from 'express'; | ||
import type { ApolloServerPlugin } from '@apollo/server'; | ||
import { ConfigurationScope, IAddPermissions, IAddPolicies, IDataSourceConfig, IDirectiveOptions, IGraphqlShieldRules, IMongoMigration, IOverwritePreference, IPreferences, IResolverOptions, IWebsocketConfig } from '../interfaces'; | ||
@@ -70,2 +71,3 @@ import { IRoleUpdate } from '../interfaces/roles'; | ||
apolloInvalidateCacheKeyGeneratorFunc?: InvalidationKeyGenerator | InvalidationKeyGenerator[]; | ||
graphqlPlugins?: ApolloServerPlugin<any>[]; | ||
}; | ||
@@ -114,2 +116,3 @@ type RegisterExpressMiddlewareFunc = (app: Express, container: Container) => void; | ||
}>; | ||
graphqlPlugins?: ApolloServerPlugin<any>[]; | ||
private _rules; | ||
@@ -116,0 +119,0 @@ private services; |
@@ -42,2 +42,3 @@ import {merge,castArray,without,union,map}from'lodash-es';import {Container}from'inversify';import {transformPrefsToArray,getCurrentPreferences}from'../utils/preferences.js';import'crypto';import'graphql/language/index.js';import'@graphql-tools/utils';import'graphql';const featureCatalog = {}; | ||
migrations; | ||
graphqlPlugins; | ||
_rules; | ||
@@ -103,2 +104,3 @@ services; | ||
}); | ||
this.graphqlPlugins = combine(args, (args) => args.graphqlPlugins); | ||
} | ||
@@ -105,0 +107,0 @@ get rules() { |
{ | ||
"name": "@common-stack/server-core", | ||
"version": "7.1.1-alpha.14", | ||
"version": "7.1.1-alpha.22", | ||
"description": "common core for higher packages to depend on", | ||
@@ -36,3 +36,3 @@ "license": "ISC", | ||
}, | ||
"gitHead": "7786ecfaab0098f0bbd2f0ee6979ae1cb2da89e1", | ||
"gitHead": "ed3eec97d069193db42215a063ecbfb76f54a4c0", | ||
"typescript": { | ||
@@ -39,0 +39,0 @@ "definition": "lib/index.d.ts" |
Sorry, the diff of this file is not supported yet
91527
0.39%1444
0.35%