Tag: google cloud endpoints

在Google Cloud App Engine上运行GraphQL服务器

在node.js本地运行端点,我在我的app.js中使用下面的代码片段 app.use('/graphql', (0, _expressGraphql2.default)(function (req) { return { schema: _schema2.default, pretty: true, context: _extends({ db: _models2.default }, (0, _isUser2.default)(req.headers['authorization'].split(' ')[1])) }; })); app.listen(8080, function () { 但是,我的应用程序没有收到来自端点的任何响应,试图访问主机名:8080 / graphql。 这在我的本地机器上工作。