// Package queries contains resolvers for individual GrahpQL queries. They were previously mixed in with one another, but that caused // difficulty seeking out specific queries. package queries import "errors" // QueryResolver is a resolver for all queries. The stuttery name is due to being embedded in the root resolver. type QueryResolver struct{} // ErrCannotResolve is returned when a resolver constructor is at its wit's end var ErrCannotResolve = errors.New("Cannot resolve due to invalid arguments") // ErrUnauthorized is when a guest acts like they own the place var ErrUnauthorized = errors.New("Unauthorized") // ErrPermissionDenied is returned when users act above their station var ErrPermissionDenied = errors.New("Permission denied")