当我将datasources
传递给阿波罗服务器配置时,一切正常,但是graphql Playground中断并显示以下消息:
无法访问服务器
const schema = makeExecutableSchema({
typeDefs: [ Users ],
resolvers: merge(resolvers, userResolvers)
});
const apolloServer = new ApolloServer({
schema,
dataSources:()=>({
usersAPI : new UsersAPI()
}),
playground:true,
introspection:true
});