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.

collection endpoint - get collection data

discord user avatar
alessiogr
2 years ago
1

Is there an easy way to get the data of a document in its collection endpoint, or do I have to use payload.findByID to get it?

  • default discord avatar
    paulpopus2 years ago

    If using the local API then yes findByID is the way



    maybe it's worth aliasing functions to the collection endpoint? or maybe it would make things more confusing for people learning how to use it 😂

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.