module Types
  class CourseExportType < Types::BaseObject
    field :id, ID, null: false
    field :export_type, Types::ExportType, null: false
    field :created_at, GraphQL::Types::ISO8601DateTime, null: false
    field :tags, [String], null: false
    field :reviewed_only, Boolean, null: false
    field :include_inactive_students, Boolean, null: false

    def tags
      object.tag_list
    end
  end
end
