Skip to content

JSONString type in schema instead of int #159

@comtihon

Description

@comtihon

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions