Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Configuration Options for shape of Batch GraphQL Return JSON

未关闭
#47 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
停滞
技术栈
flask, python
领域
api, backend

调研方向

该 issue 未指定任何文件或测试。首先跟踪 batch 选项及其 GraphQL 响应处理,以 ApolloClient 示例和当前 payload 结构作为起始行为;当调用方可以配置响应嵌套并接收到所请求的 JSON 结构时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

Awesome project you got going here, thanks for keeping this going. I've been using the batch option to allow for batch-GraphQL requests from ApolloClient, but it doesn't seem like there is an easy way to specify what shape I want the data to return in? Correct me if I'm wrong.

For example, currently when sending batch-requests, I get back a JSON array with the data I am interested in nested under a "data" key which is itself nested in a "payload" key.

[
    {"payload":
        {"data":
            {<some_data_stuff_here}
        }
    },
    {"payload":
        {"data":
            {<some_data_stuff_here}
        }
    },
    {"payload":
        {"data":
            {<some_data_stuff_here}
        }
    }
]

I'm hoping I can just get these objects sent back without the data nested in the payload key. Any suggestions? Thanks in advance.

主要语言
Python
星标
1.3k
派生
139
PR 合并指标
30 天内没有已合并 PR

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

graphql-python/flask-graphql 的其他 Issue

查看 graphql-python/flask-graphql 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。