JSONString type in schema instead of int · Issue #159 · graphql-python/graphene-sqlalchemy (original) (raw)
Hi,
I have this id in my object:my_id = Column(BigInteger().with_variant(sqlite.INTEGER(), 'sqlite'), primary_key=True)
But in graphql schema I see JSONString
type instead of Int
.
I use flask-sqlalchemy, graphene-sqlalchemy and flask-graphene.
Solution for now is to add my_id = graphene.Int()
everywhere at SQLAlchemyObjectType
subclasses. But I don't like it as I have to remember it.
Whitout .with_variant(sqlite.INTEGER(), 'sqlite')
id type in schema becames Float
which is also not correct.