import { ApolloServer } from 'apollo-server-micro'
      import { schema } from '../../apollo/schema'
      import { databaseConnect } from './../../database'
      
      const apolloServer = new ApolloServer({ schema, context: databaseConnect })
      
      export const config = {
        api: {
          bodyParser: false,
        },
      }
      
      export default apolloServer.createHandler({ path: '/api/graphql' })

      Javascript language logo
      your recipe card header background
      apolloServer

      CodingBook

      Shortcut: apolloServer.handler

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.