Talk Python To Me cover image

#349: Meet Beanie: A MongoDB ODM + Pydantic

Talk Python To Me

00:00

Pydantic

Pydantic allows you to compose these pidantic models in this like hierarchy. You can have list of other pidantic models within a pidantic model, which is exactly the same modelling you get with document data bases like monga or sequa alchemy. In your example, right at the bottom of the getup page, you have a category, which has the name and description, and you have a product that has its own name and description and then a price in it. And here you just say, coal and category, right? Ye, tochly correct. Which will jest crat medt document, yes. O the way that you model, this is why p

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app