tobiasfeil
tobiasfeil
This would be really cool. Especially if it was the default behavior. Then you would only have to specify the policies in the template and not in 2 different places
@AndHam89 Where did you change the type specification? In the source of graphene? It's still complaining for me
Thank you for the reply! I'm sorry I still don't understand how to do this, since I'm not defining the class `Schema` in my own code. All I'm doing is...
@BilalAlpaslan mounting an ASGI app on root works for me - at least the functional part of the API. In the Swagger UI docs however, I can't see the operations...
Has anyone actually tried the code? I had to replace ```python __base__=User, __module__=User.__module__, ``` with ```python __base__=model, __module__=model.__module__, ```
If you want to reference an `id` field created in this manner as a foreign key, make sure to do it like this: ```python customer_id: int = Field(None, foreign_key='customer.id', sa_column=Column(BigInteger()))...
You can achieve the desired functionality like this: ```python from sqlmodel import Session as SQLModelSession from contextlib import contextmanager engine = ... @contextmanager def Session(): session = SQLModelSession(engine) try: yield...