Method: Valkyrie::Persistence::Postgres::QueryService#find_all

Defined in:
lib/valkyrie/persistence/postgres/query_service.rb

#find_allArray<Valkyrie::Resource>

Retrieve all records for the resource and construct Valkyrie Resources

for each record

Returns:



22
23
24
25
26
# File 'lib/valkyrie/persistence/postgres/query_service.rb', line 22

def find_all
  orm_class.find_each.lazy.map do |orm_object|
    resource_factory.to_resource(object: orm_object)
  end
end