graphql-python / graphql-python/graphene-django

How to query graphene.ObjectType

Open
#1,268 0 comments 0 reactions 0 assignees View on GitHub
✨enhancement
Dominant language
Python
Stars
4.4k
Forks
760
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**
In [DOC](https://docs.graphene-python.org/projects/django/en/latest/queries/#related-models), there says:
`Then all query-able related models must be defined as DjangoObjectType subclass, or they will fail to show if you are trying to query those relation fields.`

**Describe the solution you'd like**
I'm using djongo, and there's `ObjectIdField` that `Don't know how to convert the Django field tasks.Mtask._id ()`.

If I use graphene.ObjectType, then `they will fail to show` as the DOC says.
```
class MtaskType(graphene.ObjectType):
_id = graphene.ID()
name= graphene.String()
```

I want graphene.ObjectType to show. How can I do that? Thanks.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.