7900 shaares
161 private links
161 private links
I missed that! For a possible undefined authorId in a create payload:
data: {
title: "New Post with undefined authorId",
author: authorId && { connect: { id: authorId } }
}
I missed that! For a possible undefined authorId in a create payload:
data: {
title: "New Post with undefined authorId",
author: authorId && { connect: { id: authorId } }
}