Find all instances based on query

Using query == null will retrieve all the document in the repository.

Property definitions

popcorn $ Repository :: find_all
	# Find all instances based on `query`
	#
	# Using `query` == null will retrieve all the document in the repository.
	fun find_all(query: nullable QUERY, skip, limit: nullable Int): Array[E] is abstract
lib/popcorn/pop_repos.nit:181,2--184,85

popcorn $ MongoRepository :: find_all
	redef fun find_all(query, skip, limit) do
		var res = new Array[E]
		for e in collection.find_all(query or else new JsonObject, skip, limit) do
			res.add deserialize(e.to_json).as(E)
		end
		return res
	end
lib/popcorn/pop_repos.nit:329,2--335,4