We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have articles. Each user must be read only their own articles. -> Articles.objects.filter(user=request.user)
class ArticleModelType(DjangoSerializerType): class Meta: filter_fields = { 'name': ['exact'], 'category': ['exact'], 'category__name': ['exact'] } serializer_class = ArticleSerializer class Query(graphene.ObjectType): article, articles = ArticleModelType.QueryFields()
I still haven't found a place where I should put this QuerySet = Articles.objects.filter(user=request.user)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have articles. Each user must be read only their own articles. -> Articles.objects.filter(user=request.user)
I still haven't found a place where I should put this QuerySet = Articles.objects.filter(user=request.user)
The text was updated successfully, but these errors were encountered: