sql >> Base de Datos >  >> NoSQL >> MongoDB

Insertar objeto python en mongodb

¿Qué es value? en tu codigo inicial?

Debería ser dict no instancia de clase

Esto debería funcionar:

postings.insert(posting.__dict__)