eve_neo4j/neo4j.py
def remove(self, resource, lookup={}):
        """ Removes a node or an entire set of nodes from a graph label.

        :param resource: resource being accessed. You should then use
                         the ``datasource`` helper function to retrieve
                         the actual datasource name.
        :param lookup: a dict with the query that documents must match in order
                       to qualify for deletion. For single document deletes,
                       this is usually the unique id of the document to be
                       removed.
        """
        datasource, filter_, _, _ = self._datasource_ex(resource, lookup)
        nodes = self.driver.select(datasource, **filter_)

        tx = self.driver.graph.begin()
        for node in nodes:
            remote_node = node.__remote__
            if remote_node:
                statement = 'MATCH (_) WHERE id(_)={node_id} DETACH DELETE _'
                tx.run(statement, node_id=remote_node._id)
                del node.__remote__
        tx.commit()
 Removes a node or an entire set of nodes from a graph label.

        :param resource: resource being accessed. You should then use
                         the ``datasource`` helper function to retrieve
                         the actual datasource name.
        :param lookup: a dict with the query that documents must match in order
                       to qualify for deletion. For single document deletes,
                       this is usually the unique id of the document to be
                       removed.
        
Removes a node or an entire set of nodes from a graph label.
Removes a node or an entire set of nodes from a graph label .
def remove(self, resource, lookup={}):
        datasource, filter_, _, _ = self._datasource_ex(resource, lookup)
        nodes = self.driver.select(datasource, **filter_)
        tx = self.driver.graph.begin()
        for node in nodes:
            remote_node = node.__remote__
            if remote_node:
                statement = 'MATCH (_) WHERE id(_)={node_id} DETACH DELETE _'
                tx.run(statement, node_id=remote_node._id)
                del node.__remote__
        tx.commit()
def remove ( self , resource , lookup = { } ) : datasource , filter_ , _ , _ = self . _datasource_ex ( resource , lookup ) nodes = self . driver . select ( datasource , ** filter_ ) tx = self . driver . graph . begin ( ) for node in nodes : remote_node = node . __remote__ if remote_node : statement = 'MATCH (_) WHERE id(_)={node_id} DETACH DELETE _' tx . run ( statement , node_id = remote_node . _id ) del node . __remote__ tx . commit ( )
Removes a node or an entire set of nodes from a graph label.
Removes a node or an entire set of nodes from a graph label .
""" Removes a node or an entire set of nodes from a graph label.

        :param resource: resource being accessed. You should then use
                         the ``datasource`` helper function to retrieve
                         the actual datasource name.
        :param lookup: a dict with the query that documents must match in order
                       to qualify for deletion. For single document deletes,
                       this is usually the unique id of the document to be
                       removed.
        """
self
resource
resource being accessed. You should then use
the ``datasource`` helper function to retrieve
the actual datasource name.
resource being accessed . You should then use the ` ` datasource ` ` helper function to retrieve the actual datasource name .
lookup
a dict with the query that documents must match in order
to qualify for deletion. For single document deletes,
this is usually the unique id of the document to be
removed.
a dict with the query that documents must match in order to qualify for deletion . For single document deletes this is usually the unique id of the document to be removed .