I made a new policy on the update mutation of a collection.
Here is my mutation:
mutation UpdateModel($id: ID!, $name: String) {
updateWomenModel(input: { where: { id: $id }, data: { name: $name } }) {
womenModel {
name
}
}
}
I’d like to get access to the id
in my policy function. but when I print out ctx.request.body
it only gives me what’s inside data