【发布时间】:2021-11-02 04:06:01
【问题描述】:
有没有办法拦截从 (BananaCakePop/Hotchocolate) 游乐场传递的查询并读取其中的内容?
目前我正在尝试在我的解析器中使用 IHttpContextAccessor httpContext,它是在 Startup.cs 中配置我的服务后注入的 ->services.AddHttpContextAccessor();
public async Task<IEnumerable<Account>> MyResolver(
[Service] IHttpContextAccessor httpContext,
[Service] IConfigService configService)
但是我无法在请求中看到我的查询。
这里有什么我遗漏的吗?
【问题讨论】:
标签: asp.net graphql hotchocolate