More build fixes
This commit is contained in:
parent
8fabcbaba2
commit
67b9b3e20a
11 changed files with 34 additions and 53 deletions
|
|
@ -1,10 +1,9 @@
|
|||
// @ts-nocheck
|
||||
import type { IAppConfig } from "@digiresilience/metamigo-config";
|
||||
import camelcaseKeys from "camelcase-keys";
|
||||
import PgSimplifyInflectorPlugin from "@graphile-contrib/pg-simplify-inflector";
|
||||
// import PgManyToManyPlugin from "@graphile-contrib/pg-many-to-many";
|
||||
import PgManyToManyPlugin from "@graphile-contrib/pg-many-to-many";
|
||||
import * as ConnectionFilterPlugin from "postgraphile-plugin-connection-filter";
|
||||
import type { PostGraphileCoreOptions } from "postgraphile-core";
|
||||
import type { PostGraphileOptions } from "postgraphile";
|
||||
|
||||
import {
|
||||
UserRecordRepository,
|
||||
|
|
@ -52,7 +51,6 @@ export const dbInitOptions = (
|
|||
|
||||
// Extending the database protocol with our custom repositories;
|
||||
// API: http://vitaly-t.github.io/pg-promise/global.html#event:extend
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
extend(obj: any, _dc) {
|
||||
// AppDatase was obj type
|
||||
// Database Context (_dc) is mainly needed for extending multiple databases with different access API.
|
||||
|
|
@ -74,14 +72,13 @@ export const dbInitOptions = (
|
|||
},
|
||||
});
|
||||
|
||||
export const getPostGraphileOptions = (): PostGraphileCoreOptions => ({
|
||||
export const getPostGraphileOptions = (): PostGraphileOptions => ({
|
||||
ignoreRBAC: false,
|
||||
dynamicJson: true,
|
||||
ignoreIndexes: false,
|
||||
appendPlugins: [
|
||||
PgSimplifyInflectorPlugin,
|
||||
// PgManyToManyPlugin,
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
PgManyToManyPlugin,
|
||||
ConnectionFilterPlugin as any,
|
||||
],
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue