【发布时间】:2021-12-25 00:53:08
【问题描述】:
我只有在 graphql 中有这个问题。我需要发布 base64 html,但我没有找到 graphql 的任何配置来覆盖 1mb 限制。 我已经设置了 middleware.js 并选择了上限值,但它仅适用于 REST API
【问题讨论】:
标签: graphql apollo-server strapi koa body-parser
我只有在 graphql 中有这个问题。我需要发布 base64 html,但我没有找到 graphql 的任何配置来覆盖 1mb 限制。 我已经设置了 middleware.js 并选择了上限值,但它仅适用于 REST API
【问题讨论】:
标签: graphql apollo-server strapi koa body-parser
这个github里面issue可以解决。暂时的,但它有效。
更改config/plugins.js
module.exports = {
graphql: {
endpoint: "/customendpoint"
}
};
事实上,端点/graphql没有经过解析器中间件,所以请求不起作用
【讨论】: