forked from DebaucheryLibrarian/traxxx
Removed views in favor of PostGraphile filter and sort plugins. Updated site modules to GraphQL. Added tag posters.
This commit is contained in:
@@ -48,7 +48,6 @@ async function createThumbnail(buffer) {
|
||||
}
|
||||
|
||||
async function createMediaDirectory(domain, subpath) {
|
||||
console.log(domain, subpath);
|
||||
const filepath = path.join(config.media.path, domain, subpath);
|
||||
|
||||
await fs.mkdir(filepath, { recursive: true });
|
||||
|
||||
@@ -7,8 +7,9 @@ const { postgraphile } = require('postgraphile');
|
||||
const Router = require('express-promise-router');
|
||||
const bodyParser = require('body-parser');
|
||||
|
||||
const ConnectionFilterPlugin = require('postgraphile-plugin-connection-filter');
|
||||
const PgConnectionFilterPlugin = require('postgraphile-plugin-connection-filter');
|
||||
const PgSimplifyInflectorPlugin = require('@graphile-contrib/pg-simplify-inflector');
|
||||
const PgOrderByRelatedPlugin = require('@graphile-contrib/pg-order-by-related');
|
||||
|
||||
const { ActorPlugins } = require('./plugins/plugins');
|
||||
|
||||
@@ -48,9 +49,12 @@ function initServer() {
|
||||
simpleCollections: 'only',
|
||||
graphileBuildOptions: {
|
||||
pgOmitListSuffix: true,
|
||||
connectionFilterRelations: true,
|
||||
},
|
||||
appendPlugins: [
|
||||
PgSimplifyInflectorPlugin, ConnectionFilterPlugin,
|
||||
PgSimplifyInflectorPlugin,
|
||||
PgConnectionFilterPlugin,
|
||||
PgOrderByRelatedPlugin,
|
||||
...ActorPlugins,
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user