Как отфильтровать пользовательское поле в graphene django?
from graphene_django import DjangoObjectType
from .models import Question
class QuestionType(DjangoObjectType):
class Meta:
model = Question
fields = ("id", "question_text")
extra_field = graphene.String()
def resolve_extra_field(self, info):
return "hello!"
result = Question.objects.filter(extra_field='hello!')
Ошибка Невозможно преобразовать ключевое слово 'extra_field' в поле.
Как я могу фильтровать поле extra_field в моем запросе?