collection endpoint - get collection data

discord user avatar
Payload Team
5 months ago

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
    5 months 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 😂

Open the post
Continue the discussion in Discord
Like what we're doing?
Star us on GitHub!


Connect with the Payload Community on Discord



Can't find what you're looking for?

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