# File lib/couchrest/mixins/document_queries.rb, line 36 def first(opts = {}) first_instance = self.all(opts.merge!(:limit => 1)) first_instance.empty? ? nil : first_instance.first end