lib/lotus/model/adapters/mongodb/query.rb
def all
            run.to_a
          rescue StandardError => e
            raise Lotus::Model::InvalidQueryError.new(e.message)
          end
# Resolves the query by fetching records from the database and
# translating them into entities.
#
# @return [Array] a collection of entities
#
# @raise [Lotus::Model::InvalidQueryError] if there is some issue when
# hitting the database for fetching records
#
Resolves the query by fetching records from the database and
translating them into entities.
Resolves the query by fetching records from the database and translating them into entities .
def all
            run.to_a
          rescue StandardError => e
            raise Lotus::Model::InvalidQueryError.new(e.message)
          end
def all run . to_a rescue StandardError => e raise Lotus :: Model :: InvalidQueryError . new ( e . message ) end
Resolves the query by fetching records from the database and
translating them into entities.
Resolves the query by fetching records from the database and translating them into entities .
a collection of entities
a collection of entities
Array
[Lotus::Model::InvalidQueryError] if there is some issue when hitting the database for fetching records
[ Lotus :: Model :: InvalidQueryError ] if there is some issue when hitting the database for fetching records