提交 cd8429d1 编写于 作者: N none23 提交者: Luis Alvarez D

fix apollo server initialization in api-routes-apollo-server-and-client example (#9137)

上级 ed44d92b
import { ApolloServer } from 'apollo-server-micro'
import { typeDefs } from '../../apollo/type-defs'
import { resolvers } from '../../apollo/resolvers'
import { schema } from '../../apollo/schema'
const apolloServer = new ApolloServer({ typeDefs, resolvers })
const apolloServer = new ApolloServer({ schema })
export const config = {
api: {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册