Sha256: e0fc559f4547fd17b6da4488fd4d7ecdc113e100cd5caa3fd92ae1f1b12269f2

Contents?: true

Size: 489 Bytes

Versions: 11

Compression:

Stored size: 489 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-4.0.0 lib/neo4j/active_node/query/query_proxy_find_in_batches.rb
neo4j-4.0.0.rc.4 lib/neo4j/active_node/query/query_proxy_find_in_batches.rb
neo4j-4.0.0.rc.3 lib/neo4j/active_node/query/query_proxy_find_in_batches.rb
neo4j-4.0.0.rc.1 lib/neo4j/active_node/query/query_proxy_find_in_batches.rb
neo4j-3.0.4 lib/neo4j/active_node/query/query_proxy_find_in_batches.rb
neo4j-3.0.3 lib/neo4j/active_node/query/query_proxy_find_in_batches.rb
neo4j-3.0.2 lib/neo4j/active_node/query/query_proxy_find_in_batches.rb
neo4j-3.0.1 lib/neo4j/active_node/query/query_proxy_find_in_batches.rb
neo4j-3.0.0 lib/neo4j/active_node/query/query_proxy_find_in_batches.rb
neo4j-3.0.0.rc.5 lib/neo4j/active_node/query/query_proxy_find_in_batches.rb
neo4j-3.0.0.rc.4 lib/neo4j/active_node/query/query_proxy_find_in_batches.rb