Skip to content

Instantly share code, notes, and snippets.

@uno-de-piera
Last active August 15, 2019 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uno-de-piera/ac990cfe7cee551d4fd4000f3f5925c7 to your computer and use it in GitHub Desktop.
Save uno-de-piera/ac990cfe7cee551d4fd4000f3f5925c7 to your computer and use it in GitHub Desktop.
enum Role {
ROOT # root
ADMIN # administrador
CUSTOMER # cliente
GUEST # invitado
}
input CreateUserInput {
id: ID
email: String
roles: [Role!]!
}
type Mutation {
sendEmailToNewUser(user: CreateUserInput, subject: String, message: String): String @function(name: "sendEmailToNewUser-${env}")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment