Skip to content

Commit e05cfc7

Browse files
committed
Use appendPlugins for CLI and library
1 parent f36e55c commit e05cfc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ const plugin: PostGraphilePlugin = {
3939
};
4040
return {
4141
...options,
42-
appendPlugins: [...(options.appendPlugins || []), OperationHooksPlugin],
4342
operationMessages,
4443
operationMessagesPreflight,
4544
};
@@ -52,6 +51,7 @@ const plugin: PostGraphilePlugin = {
5251
const { operationMessages, operationMessagesPreflight } = options;
5352
return {
5453
...options,
54+
appendPlugins: [...(options.appendPlugins || []), OperationHooksPlugin],
5555
graphileBuildOptions: {
5656
...options.graphileBuildOptions,
5757
operationMessages,

0 commit comments

Comments
 (0)