graphql-python / graphql-python/graphene-sqlalchemy

Having issues with sqlalchemy_utils JSONType while reading

Open
#82 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
985
Forks
223
PR merge metrics
No merged PRs in 30d

Description

I am using : https://github.com/kvesteri/sqlalchemy-utils

just so that I dont need to worry if I using Postgres in production or sqlite in dev environment .But from looks like it, I have no issues inserting data in json column, But when I read , seems like I get back a string, Wondering how to I get a python dict or json back when I read the column ?

```
from sqlalchemy_utils import JSONType
class Test(db.Model):
__tablename__ = 'test'
id = Column(Integer, primary_key=True)
json = Column(JSONType)
```

What I see

```
"json": "{\"data\": .....

```

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.