Duplicate entity keys -- how are these handled by Metabase?

Hi. I’m connecting Metabase to a MongoDB database. In one of my collections, I set ‘id’ as the entity key in the data schema. However, it can happen that I have multiple documents with the same ‘id’ number. How does Metabase treat this? As separate instances? Or as the same instance, picking the latest (or the earliest?)

Hi @nsnide
Metabase does not handle multiple entity keys - it expects it to be a Primary Key.
https://github.com/metabase/metabase/issues/5648
But currently Foreign Keys are not supported on MongoDB either:
https://github.com/metabase/metabase/issues/1687 - upvote by clicking :+1: on the first post