If you check the Beanie documentation, you'll see that the parameter "document_model" is incorrect, and the correct parameter is actually "document_models". I believe that if you try it this way, your code will run correctly.