graphene icon indicating copy to clipboard operation
graphene copied to clipboard

input object type meta

Open yaserrahimi opened this issue 5 years ago • 2 comments

is there any way to pass a model as meta class to InputObjectType class?

like this:

class GasUnitInput(graphene.InputObjectType):
    class Meta:
        model = GasUnit

yaserrahimi avatar Jul 27 '20 13:07 yaserrahimi

This functionality can only be implemented in integration modules:

art1415926535 avatar Jul 30 '20 10:07 art1415926535

I started using https://github.com/tOgg1/graphene-django-cud recently, it works well so far. Take a look if you're using Django.

janosroden avatar Aug 11 '20 13:08 janosroden