-
Notifications
You must be signed in to change notification settings - Fork 3
Queries become unwieldy for larger graphql schemas #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@AdrielVelazquez have you taken a look into graphene? The inheritance/types is handled a little bit different, and the bug you're exposing is already solved PS: GraphQL-epoxy is a great package too! Use the one you feel more comfortable with |
I'm trying to look in graphene the equivalent of the following @R.Field.CanBe
class RandomClass(object):
#Random attributes But I can't seem to find it. Does graphene have support for normal classes? |
I'm certainly confident that you would not need the |
Hmm. Mixin support is something I can do @AdrielVelazquez. |
I've implemented it as such: class NameMixin():
name = R.String
class Dog(R.ObjectType, DogMixin):
breed = R.String |
I'm utilizing epoxy for sqlalchemy models, which is working out very well; however, when attempting to separate out the models an issue arises with inheritance.
When you create a situation like this, Query doesn't have any of the parameters of QueryMixin and thus the execution fails when creating a schema.
I propose a better handling of inheriting mixins. This may be a circumstance of graphql-core not handling inheritance first.
The text was updated successfully, but these errors were encountered: