In 2.0, how to reference collections from GeneratedTypes?

default discord avatar
last month

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!

    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.