Hi! I have a mutation that takes multiple values o...
# prisma-whats-new
v
Hi! I have a mutation that takes multiple values of an
ENUM
. How should such a mutation look?
My current code is as such:
Copy code
export const signUp = gql`
  mutation signUp(
    $email: String!,
    $name: String!,
    $password: String!,
    $attended: [USER_ATTENDED!]!,
    $role: [USER_ROLE!]!,
  ) {
    createUser(
      authProvider: {
        email: {
          email: $email,
          password: $password,
        },
      },
      name: $name,
      attended: $attended,
      role: $role,
    ) {
      id,
      createdAt,
      name,
      email,
    }
  }
`;