manifold/web/lib/api/graphql/index.ts
joy_void_joy 35a811ceee graphql: Add datasources
Add a simple wrapper datasources around web/lib/firebase
2022-07-20 18:15:55 +02:00

17 lines
463 B
TypeScript

import { ApolloServer } from 'apollo-server-micro'
import { ApolloServerPluginLandingPageGraphQLPlayground } from 'apollo-server-core'
import dataSources from './datasources'
import resolvers from './resolvers'
import typeDefs from 'web/generated/schema.graphql'
export const apolloServer = new ApolloServer({
csrfPrevention: true,
cache: 'bounded',
plugins: [ApolloServerPluginLandingPageGraphQLPlayground()],
dataSources,
resolvers,
typeDefs,
})