@prisma-cms/sberbank-module
Version:
Sberbank module for @prisma-cms/server
52 lines (32 loc) • 734 B
JavaScript
import dotenv from 'dotenv';
import {
modifyArgs,
PrismaCmsServer,
} from '@prisma-cms/server'
import CoreModule from '../'
dotenv.config();
const coreModule = new CoreModule({
})
const resolvers = coreModule.getResolvers()
class PrismaCmsServerCustom extends PrismaCmsServer {
// getServer() {
// const server = super.getServer();
// return server;
// }
// processRequest(request) {
// return super.processRequest({
// ...request,
// });
// }
}
const startServer = function (options) {
return new PrismaCmsServerCustom(options).startServer()
}
startServer({
typeDefs: 'src/schema/generated/api.graphql',
resolvers,
contextOptions: {
modifyArgs,
resolvers,
},
})