|
|
@@ -79,9 +79,10 @@ export interface AdminUiPluginOptions {
|
|
|
adminUiConfig?: Partial<AdminUiConfig>;
|
|
|
/**
|
|
|
* @description
|
|
|
- * If you are running the AdminUiPlugin at the same time as the new `DashboardPlugin`, you should
|
|
|
- * set this to `true` in order to avoid a conflict caused by both plugins defining the same
|
|
|
- * schema extensions.
|
|
|
+ * @deprecated This option no longer has any effect.
|
|
|
+ *
|
|
|
+ * Previously used when running the AdminUiPlugin at the same time as the new `DashboardPlugin`
|
|
|
+ * to avoid conflicts, but this is no longer necessary as the schemas use different type names.
|
|
|
*
|
|
|
* @since 3.4.0
|
|
|
*/
|
|
|
@@ -146,14 +147,8 @@ export interface AdminUiPluginOptions {
|
|
|
@VendurePlugin({
|
|
|
imports: [PluginCommonModule],
|
|
|
adminApiExtensions: {
|
|
|
- schema: () => {
|
|
|
- const compatibilityMode = !!AdminUiPlugin.options?.compatibilityMode;
|
|
|
- return getApiExtensions(compatibilityMode);
|
|
|
- },
|
|
|
- resolvers: () => {
|
|
|
- const compatibilityMode = !!AdminUiPlugin.options?.compatibilityMode;
|
|
|
- return compatibilityMode ? [] : [MetricsResolver];
|
|
|
- },
|
|
|
+ schema: () => getApiExtensions(),
|
|
|
+ resolvers: () => [MetricsResolver],
|
|
|
},
|
|
|
providers: [MetricsService],
|
|
|
compatibility: '^3.0.0',
|