You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class User(Base):
name = Column(Text)
lastname = Column(Text)
full_name = column_property(name + " " + lastname)
When I start application I get this stack trace:
...
File "/home/myhome/strawberry-test/lib/python3.10/site-packages/strawberry_sqlalchemy_mapper/mapper.py", line 371, in _convert_column_to_strawberry_type
if column.nullable:
File "/home/myhome/strawberry-test/lib/python3.10/site-packages/sqlalchemy/sql/elements.py", line 1495, in __getattr__
raise AttributeError(
AttributeError: Neither 'Label' object nor 'Comparator' object has an attribute 'nullable'
If I comment out the full_name field in the model, it works as expected.
I have a model, which includes column_property
When I start application I get this stack trace:
If I comment out the
full_name
field in the model, it works as expected.Ubuntu 22.04, python 3.10, SQLAlchemy 2.027, psycopg 3.1.18, strawberry-sqlalchemy-mapper 0.4.2, strawberry-graphql 0.219.2
Upvote & Fund
The text was updated successfully, but these errors were encountered: