Don't know how to convert the Django class django_mysql.models.fields.json.JSONField
See original GitHub issueI’ve just added a JSONField on my models and graphene said Don't know how to convert the Django class django_mysql.models.fields.json.JSONField
.
I think it wasn’t supported yet but are there any way to work around?
thanks
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Using Django's JSONField? You probably don't need it. Here's ...
Switching from JSONB to JSON If you're using Postgres with Django and importing the JSONField object, you're using JSONB. This is the default ......
Read more >JsonField in Django for MySQL - Stack Overflow
It looks like the change is only for supporting all databases with the same unique model field. There is a similar issue in...
Read more >How to create custom model fields - Django documentation
The trick is to tell Django how to handle saving and loading such an object. In order to use the Hand class in...
Read more >Convert JSON data into structured data in an SQL database ...
I have a `ChatSession` model which represents all the useful information to be stored after the end of a chat session . Now,...
Read more >Set Fields - Django-MySQL 4.8.0 documentation
On earlier versions of Django, you can use django-jsonfield-backport. Two fields that store ... This is only checked on form validation, not on...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Adding some more color to this in case there are others who arrive from google:
Suppose you have a django model like so:
Here’s what the
Query
object and connecting type would look like:And here’s what a sample GraphQL query and response end up looking like:
I end up with this snippet, thanks