Skip to content

Create Row with relation #177

Answered by Notaduck
Notaduck asked this question in Q&A
Jul 15, 2024 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

I just had to read MS's documentation, sorry. This was the answer to my question

  @Expose()
  @Transform(({ obj }: PolicyWithQuote): string => `/contacts(${obj.customerId})`)// obj.customerId, { toClassOnly: true })
  "iu_customerid_contact@odata.bind": string; // Field for customer relationship

Replies: 1 comment 2 replies

Comment options

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

@Notaduck
Comment options

Answer selected by Notaduck
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants