[Fixed]-Graphene-Django and Model Properties

30👍

In the schema object for Profile, you can add a String field with a source:

class Profile(DjangoObjectType):
    profile_name = graphene.String(source='profile_name')
    class Meta:
        model = ProfileModel
        interfaces = (relay.Node, )

Leave a comment