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.

Hi guys, do you know if there is a "pick" options ...

1

Hey

@220272696582340629

, there is no Pick option via the REST API. You could either open a custom endpoint and then use underlying model to query the DB, or use GraphQL



Custom endpoint would be pretty easy to throw together honestly.

https://payloadcms.com/docs/rest-api/overview#custom-endpoints

Then you can access payload off the req and do payload['collection-slug'].Model and perform your specific find operation using the Model

  • default discord avatar
    clement6396last year

    Ok cool, thx for your quick answer ! 🙏

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.