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.

In 2.0, how to reference collections from GeneratedTypes?

default discord avatar
jm.svlast year

My plugin accepts a string referring to one of the collection slugs. Previously I just had this typed as a string. In 2.0, how can I reference the GeneratedTypes from the payload-types file?



I think I got 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.