Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Abstract ObjectTypes don't have a specific type.

See original GitHub issue

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."""


schema = graphene.Schema(name='MTP Schema')
schema.query = Query

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

jcousercommented, Aug 16, 2017


I wasn’t sure where this comment was best placed. Which is also in:

I’m attempting to create this level of abstraction as well. I’m using graphql-sqlalchemy and when I do something like:

class UserGroupMember(SQLAlchemyObjectType):
    class Meta:
        abstract = True
        model = UserGroupMemberModel
        interfaces = (CustomNode, )

I’m getting the following error:

TypeError: Invalid attributes: abstract

greenteamercommented, Apr 2, 2016

wow … this is amasing!!! thank you !!! you did a great job

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why can't an object of abstract class be created?
An abstract type is defined largely as one that can't be created. You can create subtypes of it, but not of that type...
Read more >
Abstract types and methods in Swift - Swift by Sundell
In object-oriented programming, an abstract type provides a base implementation that other types can inherit from in order to gain access to ...
Read more >
Abstract Methods and Classes (The Java™ Tutorials ...
An abstract class is a class that is declared abstract —it may or may not include abstract methods. Abstract classes cannot be instantiated,...
Read more >
Abstract Objects - Stanford Encyclopedia of Philosophy
Other platonists have argued that abstract objects are connected to empirical entities, either via abstraction (Steiner 1975; Resnik 1982; ...
Read more >
Reading 12: Abstract Data Types
Objectives. Today's class introduces two ideas: Abstract data types; Representation independence. In this reading, we look at a powerful idea, abstract data ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found