GraphQL API and utilities for the rpdata project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
612 B

  1. // Package mutations contains resolvers for individual GrahpQL mutations. They were previously mixed in with one another, but that caused
  2. // difficulty seeking out specific mutations.
  3. package mutations
  4. import "errors"
  5. // MutationResolver is a resolver for all mutations. The stuttery name is due to being embedded in the root resolver.
  6. type MutationResolver struct{}
  7. // ErrUnauthorized is when a guest acts like they own the place
  8. var ErrUnauthorized = errors.New("Unauthorized")
  9. // ErrPermissionDenied is returned when users act above their station
  10. var ErrPermissionDenied = errors.New("Permission denied")