8276 shaares
182 private links
182 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 } }
}