Skip to content

Commit

Permalink
Update postgraphile
Browse files Browse the repository at this point in the history
  • Loading branch information
doombubbles committed Dec 17, 2024
1 parent fd6e0b2 commit be721f7
Show file tree
Hide file tree
Showing 4 changed files with 141 additions and 110 deletions.
1 change: 1 addition & 0 deletions spellsource-web/graphile.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const preset: GraphileConfig.Preset = {
],
plugins: [PgOmitArchivedPlugin],
pgServices: [
// @ts-ignore
makePgService({
schemas: ["spellsource"],
pool: pgPool,
Expand Down
2 changes: 1 addition & 1 deletion spellsource-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"node-fs-extra": "^0.8.2",
"pify": "^5.0.0",
"pixelmatch": "^5.2.1",
"postgraphile": "^5.0.0-beta.15",
"postgraphile": "^5.0.0-beta.37",
"postgraphile-plugin-connection-filter": "^3.0.0-beta.1",
"probe-image-size": "^7.2.3",
"psd.js": "^3.3.15",
Expand Down
6 changes: 6 additions & 0 deletions spellsource-web/src/server/postgraphile-apollo-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ import { print } from "postgraphile/graphql";

export const createPostgraphileSchema = async (preset: GraphileConfig.Preset) => {
try {
if (process.env.VERBOSE == "true") {
console.log("Starting to create postgraphile schema");
}
const { schema, resolvedPreset } = await makeSchema(preset);
if (process.env.VERBOSE == "true") {
console.log("Successfully made initial schema");
}

const postgraphileSchema = wrapSchema({
schema,
Expand Down
Loading

0 comments on commit be721f7

Please sign in to comment.