Jessica Gadling

Results 7 comments of Jessica Gadling

I've updated this PR against the latest locations db - the first one was based on an older file, sorry. > Cool! How did you handle issues with different names...

Right - those are excellent points, and I hadn't actually considered the data initialization issue before you brought it up 😅 However, I do think the tradeoffs for this functionality...

Has anyone had a chance to look into this more? I use GUID identifiers so I don't need this magic-id-conversion stuff, and this assumption is buried deeeep in the relay...

As an alternative to TypedDict, which is pretty basic - the pydantic_settings module has an *excellent* configuration interface: https://docs.pydantic.dev/latest/usage/pydantic_settings/ It allows setting default values, enforces type/value validation, can take overrides...

I have a rough demo of using Strawberry's FieldExtension to do this. It uses FastAPI internals though, so ymmv if they do a refactor: https://gist.github.com/jgadling/1971426b0075073ea6d13d64cade1310

@patrick91 absolutely, if you think it would be a useful addition!

A dependency_injector flavor: https://gist.github.com/jgadling/c23eebf4a08c8db199df2a4fd70bf555