graphene: Abstract ObjectTypes don't have a specific type.
I have this error, when I add a second inheritance class in my main Query.
class Query(trainings.schema.Query, brainstormers.schema.Query):
"""This class will inherit from multiple Queries as we begin to add more apps to our project."""
pass
schema = graphene.Schema(name='MTP Schema')
schema.query = Query
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 15 (7 by maintainers)
Commits related to this issue
- Fixed inheritance from abstract types. Fixed #84 — committed to graphql-python/graphene by syrusakbary 8 years ago
Hi,
I wasn’t sure where this comment was best placed. Which is also in: https://github.com/graphql-python/graphene/issues/55
I’m attempting to create this level of abstraction as well. I’m using graphql-sqlalchemy and when I do something like:
I’m getting the following error:
TypeError: Invalid attributes: abstract