Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Empty collection after manual JSON import

default discord avatar
pooledgelast year
1

I'm new to PL and Mongo. I've imported 2 JSONs like, let's say, Categories and Posts, which are in a relation to each other. Now I can cross-see them in PL as a choice in a relationship field, but both collection lists are showing empty with an XHR response like:


{
    "docs": [],
    ...
}


MongoDB Compass showing all entries, and I've tried to

reIndex()

both collections with no avail. It must be something very simple I'm missing here...



To answer my own question:

_COLLECTIONNAME_versions

must also be imported if versioning is enabled

    Star on GitHub

    Star

    Chat on Discord

    Discord

    online

    Can't find what you're looking for?

    Get help straight from the Payload team with an Enterprise License.