[Answered ]-How to get the id (not pk) from mongoengine models? 22 December 2023 by thecoderscamp.com 2👍 Currently id is reserved for the primary key – so can’t be reused for a non primary key. 👤Ross [Answered ]-Django raw Query aggreation function Source:stackexchange.com