Replies: 7 comments 1 reply
-
I don't think there's space for that on the FastAPI code source. I see it as analogous of what we do when we use SQLAlchemy: create both Pydantic and SQLAlchemy models. What I've checked is that there's a package called django-neomodel (last commit 2 years ago) that could give you ideas on a possible package called |
Beta Was this translation helpful? Give feedback.
-
Thank you for pointing me in the right direction! @tiangolo's Maybe asking for pydantic models support in neomodel is a better approach. Your thoughts? |
Beta Was this translation helpful? Give feedback.
-
To be honest,
Well, if you want an interface between those two, it seems fair to limit one based on the other.
I don't see why not. 👍 |
Beta Was this translation helpful? Give feedback.
-
Damn, this is nice. I'd love to be able to do that. Anyways, thanks for your time and help @Kludex ♥ |
Beta Was this translation helpful? Give feedback.
-
Hey Guys, i really to integrate a feature like this as a plug-in feature to pydantic. |
Beta Was this translation helpful? Give feedback.
-
Did anyone end up doing something? |
Beta Was this translation helpful? Give feedback.
-
I am making a
fastapi
server withneo4j
database, and am using theneomodel
driver for connecting to the database.I will have to create 2 seperate models, first in neomodel, second in pydantic (for request body validation and stuff). Is there a way to use the neomodel models in all the places where pydantic models are used in fastapi, if not could anyone point me in a direction to make the development experience as frictionless as possible.
Also, I am open to making a PR (if this is a feature that can be implemented), I'll just need a little guidance because I don't know the fastapi codebase.
BTW, thanks for the amazing library!
Beta Was this translation helpful? Give feedback.
All reactions