UNPKG

@prisma-cms/sberbank-module

Version:
52 lines (32 loc) 734 B
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, }, })