       end
     end
 
-    # @desc "Send emails to users that haven't applied to the hackathon yet"
-    # field :send_not_applied_emails, :string do
-    #   middleware RequireAdmin
-
-    #   resolve fn _args, _info ->
-    #     Competitions.send_not_applied_email
-    #     {:ok, ""}
-    #   end
-    # end
-
-    # @desc "Send food allergies inquiry emails"
-    # field :send_food_allergies_emails, :string do
-    #   middleware RequireAdmin
-
-    #   resolve fn _args, _info ->
-    #     Competitions.send_food_allergies_email
-    #     {:ok, ""}
-    #   end
-    # end
-
+    #-------------------------------------------------------------------------- Admin / users
     @desc "Makes a user admin (admin only)"
     field :make_admin, :user do
       arg :id, non_null(:string)

      end
    end

    #
    # paginated resource collections
    connection field :users, node_type: :user do
      arg :order_by, :string


      end
    end

    #-------------------------------------------------------------------------- Admin / check in
    @desc "Toggles competition check in status for user"
    field :toggle_user_checkin, :user do
      arg :user_id, non_null(:string)
