Sha256: f67bee9743b04bcfb30459faaf6b2c4f9bf77f9b406c4538f44630ee4437440a

Contents?: true

Size: 488 Bytes

Versions: 11

Compression:

Stored size: 488 Bytes

Contents

module Neo4j
  module ActiveNode
    module Query
      module QueryProxyFindInBatches
        def find_in_batches(options = {})
          query.return(identity).find_in_batches(identity, @model.primary_key, options) do |batch|
            yield batch
          end
        end

        def find_each(options = {})
          query.return(identity).find_each(identity, @model.primary_key, options) do |result|
            yield result
          end
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
neo4j-5.0.1 lib/neo4j/active_node/query/query_proxy_find_in_batches.rb
neo4j-5.0.0 lib/neo4j/active_node/query/query_proxy_find_in_batches.rb
neo4j-5.0.0.rc.3 lib/neo4j/active_node/query/query_proxy_find_in_batches.rb
neo4j-5.0.0.rc.2 lib/neo4j/active_node/query/query_proxy_find_in_batches.rb
neo4j-5.0.0.rc.1 lib/neo4j/active_node/query/query_proxy_find_in_batches.rb
neo4j-4.1.5 lib/neo4j/active_node/query/query_proxy_find_in_batches.rb
neo4j-4.1.4 lib/neo4j/active_node/query/query_proxy_find_in_batches.rb
neo4j-4.1.3 lib/neo4j/active_node/query/query_proxy_find_in_batches.rb
neo4j-4.1.2 lib/neo4j/active_node/query/query_proxy_find_in_batches.rb
neo4j-4.1.1 lib/neo4j/active_node/query/query_proxy_find_in_batches.rb
neo4j-4.1.0 lib/neo4j/active_node/query/query_proxy_find_in_batches.rb