Have you ever thought that the unique querys format of firestore is unlike any other nosql …

Firestore is this super powerful database created by the Firebase team in google, but what happens when we want to migrate what we had in another database and we find that we handle state data, and these are not handled equally in query’s from firestore…

Suppose we want to migrate from mongodb to firestore…

And suppose that what we are migrating is a chat … a chat normally has data like who sends it, who receives it, and above all it has an important data, the famous double blue check, or rather the follow-up of read.

Then we would have a structure similar to this one: