Skip to content

Commit

Permalink
V4 preset should use amber preset
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie committed Jul 17, 2023
1 parent e345e5b commit 8fa6f45
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions postgraphile/postgraphile/src/presets/v4.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import type { IncomingMessage, ServerResponse } from "http";
import { PgV4BehaviorPlugin } from "../plugins/PgV4BehaviorPlugin.js";
import { PgV4InflectionPlugin } from "../plugins/PgV4InflectionPlugin.js";
import { PgV4SmartTagsPlugin } from "../plugins/PgV4SmartTagsPlugin.js";
import PostGraphileAmberPreset from "./amber.js";

export { PgV4BehaviorPlugin, PgV4InflectionPlugin, PgV4SmartTagsPlugin };

Expand Down Expand Up @@ -209,6 +210,7 @@ export const makeV4Preset = (
const graphiqlPath = options.graphiqlRoute ?? "/graphiql";
const eventStreamPath = options.eventStreamRoute ?? `${graphqlPath}/stream`;
return {
extends: [PostGraphileAmberPreset],
plugins: [
PgV4InflectionPlugin,
PgV4SmartTagsPlugin,
Expand Down

0 comments on commit 8fa6f45

Please sign in to comment.