according to this: <https://www.graph.cool/docs/re...
# prisma-whats-new
j
according to this: https://www.graph.cool/docs/reference/auth/authorization/important-notes-aej3ne1eez I can't update a node if I am only updating a relation id. What would be the workaround then :l
For example I have this:
Copy code
mutation($id: ID! $orderStatusId: ID!) {
    updateOrder(
        id: $id
        orderStatusId: $orderStatusId
    ) {
        id
        orderStatus {
            id
            orderStatusName
        }
    }
}
and it gives me permission error even though I'm logged in as admin role and everything. If I remove the custom permission query it let me executes this.
ok so I changed it to this:
Copy code
mutation($id: ID!, $orderStatusId: ID!) {
  addToOrderOnOrderStatus(
    ordersOrderId:$id
    orderStatusOrderStatusId:$orderStatusId
  ) {
    orderStatusOrderStatus {
      orderStatusName
    }
  }
}
it works now