I'm trying resolver functions and when I test them...
# prisma-whats-new
q
I'm trying resolver functions and when I test them, I get an empty return value:
Copy code
type Roles {
  id: String!
  roles: [String]
}

extend type Query {
  roles(id: String): Roles
}
inline code:
Copy code
module.exports = function(event) {
  const id = event.data.id

  const roles = ["somerole"]

  return {
    data: {
      id: id,
      roles: roles}}
}