Talk Python To Me cover image

#432: Migrating to Pydantic 2.0: Beanie for MongoDB

Talk Python To Me

Classes, Fields, and MongoDB's Document-based Structure

18min Snip

00:00
Play full episode
This chapter explores the concept of classes and fields in Pydantic and how they are stored in a database, highlighting the advantages of data science queries on the database layer and the flexibility of MongoDB's document-based structure. It also discusses the use of the link type in Beanie for establishing document relations and the new feature of backtracking back references for links.

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode