Hey guys, I have question related to prisma and I ...
# prisma-whats-new
a
Hey guys, I have question related to prisma and I couldn’t find answer in the docs. I’m getting an error
Cannot return null for non-nullable field
when trying to delete resource and asking for fields on a relation. Is that normal? if yes, Is that the correct behavior? example:
Copy code
mutation {
  deletePost(where: {
    id: "<ID>"
  }) {
    id
    user {
      id // this cause an error
    }
  }
}
PS: I’m testing that against Prisma APIs
m
Hey @atito 👋 Could you share your resolver function for this and the datamodel of your application? 🙂