collection endpoint - get collection data

discord user avatar
alessiogr
Payload Team
5 months 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
    paulpopus
    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!

Star

Connect with the Payload Community on Discord

Discord

online

Can't find what you're looking for?

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