module Types::Champs
  class CarteChampType < Types::BaseObject
    implements Types::ChampType

    field :geo_areas, [Types::GeoAreaType], null: false

    def geo_areas
      Loaders::Association.for(Champs::CarteChamp, :geo_areas).load(object)
    end
  end
end
