art1415926535 / graphene-sqlalchemy-filter

Filters for Graphene SQLAlchemy integration
https://pypi.org/project/graphene-sqlalchemy-filter/
MIT License
118 stars 34 forks source link

Model with more than one primary key #18

Closed andreferreirav2 closed 4 years ago

andreferreirav2 commented 4 years ago

I just bumped into the ModelNotSupported Exception after adding a second primary key to a model. (https://github.com/art1415926535/graphene-sqlalchemy-filter/blob/master/graphene_sqlalchemy_filter/connection_field.py#L195)

Is there any kind of approach recomended when bumping into this scenario?

art1415926535 commented 4 years ago

Is there any kind of approach recomended when bumping into this scenario?

No.

I had problems writing the correct sqlachemy query when I wrote that part of the module. I have time to try to solve this problem.

I will write about the results in a few days.

art1415926535 commented 4 years ago

Fixed in version 1.11.0.

If you are using sqlite: