graphql-python / graphql-python/graphene

Exporting schema with type that inherits multiple interfaces outputs invalid schema

Open
#1,263 1 comment 6 reactions 0 assignees View on GitHub
🐛 bug
Dominant language
Python
Stars
8.2k
Forks
818
PR merge metrics
No merged PRs in 30d

Description

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

* **What is the current behavior?**

When converting a schema object to string containing type with multiple interfaces results to invalid notation with comma as separating character:

`type Potato implements Food, Vegetable ...`

* **What is the expected behavior?**

`type Potato implements Food & Vegetable ...`

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

graphene: 2.1.8
graphene-django: 2.10.1
graphene-federation: 0.1.0

Platform: Mac

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing Graphene's schema-object-to-string export path for interface lists. Reproduce the issue with a type implementing multiple interfaces and compare the generated notation with the expected ampersand-separated form. Done means the exported schema is valid and the existing schema serialization tests cover this case.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.