graphene icon indicating copy to clipboard operation
graphene copied to clipboard

Exporting schema with type that inherits multiple interfaces outputs invalid schema

Open isipila opened this issue 5 years ago • 1 comments

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

isipila avatar Sep 02 '20 09:09 isipila

looks like the bug is on the following line graphql/utils/schema_printer.py:131 and it's already fixed in the new version of graphql-core: https://github.com/graphql-python/graphql-core/blob/7d826f0ec0a447cb869dfb891a755dbe8ea9b66f/src/graphql/utilities/print_schema.py#L154

emilt27 avatar Dec 23 '20 11:12 emilt27