Open mbrochh opened 7 years ago
something like this:
class ProductSizeType(DjangoObjectType): class Meta: model = models.ProductSize interfaces = (graphene.Node, ) local_fields = { 'pk': graphene.Field(graphene.Int), } def resolve_pk(self, args, context, info): return self.pk
something like this: