something like this : ``` const db = new Prisma({ ...
# orm-help
j
something like this :
Copy code
const db = new Prisma({
  typeDefs: "src/generated/prisma.graphql", // the auto-generated GraphQL schema of the Prisma API
  endpoint: "<https://url.to.endpoint>", // the endpoint of the Prisma API (value set in `.env`)
  debug: true // log all GraphQL queries & mutations sent to the Prisma API
  // secret: process.env.PRISMA_SECRET, // only needed if specified in `database/prisma.yml` (value set in `.env`)
});

const params = {
  typeDefs: importSchema(path.resolve("./src/schema.graphql")), // Your custom schema
  resolvers, // Your resolvers
  introspection: true, // automatic in DEV but needed in PROD too
  //playground: true, automatic in DEV
  context: req => ({
    ...req,
    db
  })
};

const server = new ApolloServer(params);