code: func validateOrder(orderBy string) error {
  	if orderBy != "key" && orderBy != "def" {
  		return fmt.Errorf("unknown order %q, expecting either \"key\" or \"def\"", orderBy)
  	}
  	return nil
  }
docs: // validateOrder returns an error if the edge traversal order is unrecognized.