graphql-python / graphql-python/graphene

Two interfaces on a node object produces incorrect graphql schema output

未关闭
#1,209 1 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
🐛 bug
主要语言
Python
星标
8.2k
派生
818
PR 合并指标
30 天内没有已合并 PR

描述

**Note: for support questions, please use stackoverflow**. This repository's issues are reserved for feature requests and bug reports.

* **What is the current behavior?**
Using two interfaces on a single node results in a schema file where the Interfaces are separated by comma and not ampersand. The comma results in an error, when using, say relay compiler.

* **If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem** via
a github repo, https://repl.it or similar.
- Inherit from two different interfaces
- Output the schema using graphql_schema

* **What is the expected behavior?**

* **What is the motivation / use case for changing the behavior?**

* **Please tell us about your environment:**

- Version:
- Platform:

* **Other information** (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow)

贡献指南

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

调研方向

通过继承两个接口并使用 graphql_schema 生成 schema 来复现该问题。检查生成的接口列表,并验证输出使用以连字符号分隔的接口,而不是使用逗号分隔,以便 Relay compiler 等工具能够接受该 schema。

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

评估

技术栈
graphql, python
领域
api
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

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