Doctor

Results 90 comments of Doctor

Storing db models in same place is just a personal preference, but I feel like it's very usable in small applications/microservices. You can use poetry in docker, either by exporting...

I'd say there's also a "problem" with using sqlalchemy commits with fastapi. Usually you should use `.flush()` method to flush sql to database if you need a server-side generated data...

@patrick91 I think there's a use case for a non-null optional field, but I don't know if graphql spec allows that 🤔 Could be something like this: ```py @strawberry.input class...

Main issue (at least for me) is that implementing partial updates is kind of awkward

```py @strawberry.input class BookUpdate: title: str = None published_at: datetime | None = strawberry.UNSET @strawberry.type class Mutation: async def book_update( self, id: strawberry.ID, input: BookUpdate, ) -> BookType: book =...

@jkimbo It seems that was the case ~10 months ago, it worked in my old project which used strawberry `0.93.4` But all non-nullable values are indeed required to be present...

Hello, what kind of validation are we talking about? If it's simple validation that doesn't have to interact with your data storage/db you can use pydantic, otherwise you should check...

**Local Session Management** - It's not wrong to create multiple sessions per request when it makes sense - think graphql resolvers or something similar 🤔

In most REST endpoints it's enough to use one session per endpoint since it's a single operation that either completes or not.

That depends on the use case, some things need page based pagination, some need cursor pagination