I have an image field in my Django model and I am trying to get absolute path of the image field output from Graphene so as to connect to my client.
class ProfileType(DjangoObjectType):
class Meta: model = Profile
def resolve_avatar(self, info, **kwargs):
print(info.context.build_absolute_uri(self.avatar))
I do not get an absolute file field path.