Hi, great article to get started with django and mongodb, I have to make an app where my apis will…
Kiran Tambe
1

Hi, Kiran! Could you elaborate on what complex queries you’d need? May be an example? What benefits would you like to get from mongoengine? As for slow pagination, that’s actually unexpected — I guess, queryset filtering should work quite fast.

Generally, I’d say that DRF is not too good for complex API requests. For instance, it doesn’t support multiple lookup fields out of the box. E.g. if you need a URL like `/api/:author/:book` — where you have 2 lookup keys, `author` and `book`, you can’t do this without third-party packages, such as nested routers in DRF-extras or hacking the router code yourself.

Like what you read? Give Boris Burkov a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.