Skip to content
Discussion options

You must be logged in to vote

Well, I think in this case @falko100 the problem is that your relationship field data is not in the right shape.

Relationships have four potential different data shapes, so if you're trying to fill relationships, you need to determine which shape is right for your field(s) and pass data to the operation according to the required relationship field configuration.

We have some docs about this here:
https://payloadcms.com/docs/fields/relationship#how-the-data-is-saved

We do this just about every day without problem, so I don't think this is a bug - moreso you are just passing data incorrectly. I'll bump this over to a Discussion and we can continue the conversation there!

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@falko100
Comment options

@falko100
Comment options

Answer selected by falko100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
status: needs-triage Possible bug which hasn't been reproduced yet
3 participants
Converted from issue

This discussion was converted from issue #1507 on November 25, 2022 18:29.