Skip to content

Commit ac4cb34

Browse files
committed
Update usage
1 parent b4a66d2 commit ac4cb34

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

__tests__/integration/queries.test.ts

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
} from "graphql";
1414
import { withPgClient, withPgPool } from "../helpers";
1515
import { PgConditionArgumentPlugin } from "graphile-build-pg";
16-
import { postgraphilePresetAmber } from "postgraphile/presets/amber";
16+
import { PostGraphileAmberPreset } from "postgraphile/presets/amber";
1717
import { makeV4Preset, V4Options } from "postgraphile/presets/v4";
1818
import { makeSchema } from "postgraphile";
1919
import { PostGraphileConnectionFilterPreset } from "../../src/index";
@@ -44,23 +44,20 @@ const createPostGraphileSchema = async (
4444
) => {
4545
const preset: GraphileConfig.Preset = {
4646
extends: [
47-
postgraphilePresetAmber,
47+
PostGraphileAmberPreset,
4848
PostGraphileConnectionFilterPreset,
4949
makeV4Preset(v4Options),
5050
...(anotherPreset ? [anotherPreset] : []),
5151
],
5252
plugins: [FilterAllPlugin],
5353
pgServices: [
54-
{
55-
adaptor,
54+
adaptor.makePgService({
5655
name: "main",
5756
withPgClientKey: "withPgClient",
5857
pgSettingsKey: "pgSettings",
5958
schemas: schemas,
60-
adaptorSettings: {
61-
pool,
62-
},
63-
} as any, //GraphileConfig.PgDatabaseConfiguration<"@dataplan/pg/adaptors/pg">,
59+
pool,
60+
}),
6461
],
6562
};
6663
const params = await makeSchema(preset);

__tests__/integration/schema/core.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as pg from "pg";
22
import * as adaptor from "postgraphile/@dataplan/pg/adaptors/pg";
33
import { printSchemaOrdered, withPgClient } from "../../helpers";
4-
import { postgraphilePresetAmber } from "postgraphile/presets/amber";
4+
import { PostGraphileAmberPreset } from "postgraphile/presets/amber";
55
import { makeV4Preset, V4Options } from "postgraphile/presets/v4";
66
import { makeSchema } from "postgraphile";
77
import { PostGraphileConnectionFilterPreset } from "../../../src/index";
@@ -15,7 +15,7 @@ const createPostGraphileSchema = async (
1515
) => {
1616
const preset: GraphileConfig.Preset = {
1717
extends: [
18-
postgraphilePresetAmber,
18+
PostGraphileAmberPreset,
1919
PostGraphileConnectionFilterPreset,
2020
makeV4Preset(v4Options),
2121
...(anotherPreset ? [anotherPreset] : []),

src/PgConnectionArgFilterPlugin.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,8 @@ export const PgConnectionArgFilterPlugin: GraphileConfig.Plugin = {
490490
function (
491491
_: any,
492492
$connection: ConnectionStep<
493+
any,
494+
any,
493495
any,
494496
any,
495497
any,

0 commit comments

Comments
 (0)