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.

Has there been a change in type generation? Most of my types are now optional

default discord avatar
wiesson2 years ago
3

I can't explain why now most of my types are optional. Does anyone know? I briefly checked the release notes but I can't find something that might be related



The screenshot below shows just shows the the git-change if I update the file



Ok, the change was introduced in

1.6.20

- if I use

1.6.19

it does not happen



I guess:


check relationships indexed access for undefined (959f017)

  • discord user avatar
    jarrod_not_jared
    2 years ago

    I believe this has been adjusted to be more accurate, have you updated payload recently?

  • default discord avatar
    wiesson2 years ago

    Sorry, I didn't regenerate the types, so I kind of postponed this issue - I'll check later this week

  • default discord avatar
    mrl72 years ago

    I've noticied the same issue this morning after updating. A lot of my fields are now marked as optional where they weren't previously?



    Is there anyway with Payload to mark that these fields shouldn't be optional?

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.