eve_neo4j/neo4j.py
def find(self, resource, req, sub_resource_lookup):
        """ Retrieves a set of documents matching a given request.

        :param resource: resource being accessed. You should then use
                         the ``datasource`` helper function to retrieve both
                         the db collection/table and base query (filter), if
                         any.
        :param req: an instance of ``eve.utils.ParsedRequest``. This contains
                    all the constraints that must be fulfilled in order to
                    satisfy the original request (where and sort parts, paging,
                    etc). Be warned that `where` and `sort` expresions will
                    need proper parsing, according to the syntax that you want
                    to support with your driver. For example ``eve.io.Mongo``
                    supports both Python and Mongo-like query syntaxes.
        :param sub_resource_lookup: sub-resoue lookup from the endpoint url.
        """
        label, filter_, fields, sort = self._datasource_ex(resource, [])
        selected = self.driver.select(label)

        if req.where:
            properties = json.loads(req.where)
            selected = selected.where(**properties)

        if req.max_results:
            selected = selected.limit(req.max_results)

        if req.page > 1:
            selected = selected.skip((req.page - 1) * req.max_results)

        return Neo4jResultCollection(selected)
 Retrieves a set of documents matching a given request.

        :param resource: resource being accessed. You should then use
                         the ``datasource`` helper function to retrieve both
                         the db collection/table and base query (filter), if
                         any.
        :param req: an instance of ``eve.utils.ParsedRequest``. This contains
                    all the constraints that must be fulfilled in order to
                    satisfy the original request (where and sort parts, paging,
                    etc). Be warned that `where` and `sort` expresions will
                    need proper parsing, according to the syntax that you want
                    to support with your driver. For example ``eve.io.Mongo``
                    supports both Python and Mongo-like query syntaxes.
        :param sub_resource_lookup: sub-resoue lookup from the endpoint url.
        
Retrieves a set of documents matching a given request.
Retrieves a set of documents matching a given request .
def find(self, resource, req, sub_resource_lookup):
        label, filter_, fields, sort = self._datasource_ex(resource, [])
        selected = self.driver.select(label)
        if req.where:
            properties = json.loads(req.where)
            selected = selected.where(**properties)
        if req.max_results:
            selected = selected.limit(req.max_results)
        if req.page > 1:
            selected = selected.skip((req.page - 1) * req.max_results)
        return Neo4jResultCollection(selected)
def find ( self , resource , req , sub_resource_lookup ) : label , filter_ , fields , sort = self . _datasource_ex ( resource , [ ] ) selected = self . driver . select ( label ) if req . where : properties = json . loads ( req . where ) selected = selected . where ( ** properties ) if req . max_results : selected = selected . limit ( req . max_results ) if req . page > 1 : selected = selected . skip ( ( req . page - 1 ) * req . max_results ) return Neo4jResultCollection ( selected )
Retrieves a set of documents matching a given request.
Retrieves a set of documents matching a given request .
""" Retrieves a set of documents matching a given request.

        :param resource: resource being accessed. You should then use
                         the ``datasource`` helper function to retrieve both
                         the db collection/table and base query (filter), if
                         any.
        :param req: an instance of ``eve.utils.ParsedRequest``. This contains
                    all the constraints that must be fulfilled in order to
                    satisfy the original request (where and sort parts, paging,
                    etc). Be warned that `where` and `sort` expresions will
                    need proper parsing, according to the syntax that you want
                    to support with your driver. For example ``eve.io.Mongo``
                    supports both Python and Mongo-like query syntaxes.
        :param sub_resource_lookup: sub-resoue lookup from the endpoint url.
        """
self
resource
resource being accessed. You should then use
the ``datasource`` helper function to retrieve both
the db collection/table and base query (filter), if
any.
resource being accessed . You should then use the ` ` datasource ` ` helper function to retrieve both the db collection / table and base query ( filter ) if any .
req
an instance of ``eve.utils.ParsedRequest``. This contains
all the constraints that must be fulfilled in order to
satisfy the original request (where and sort parts, paging,
etc). Be warned that `where` and `sort` expresions will
need proper parsing, according to the syntax that you want
to support with your driver. For example ``eve.io.Mongo``
supports both Python and Mongo-like query syntaxes.
an instance of ` ` eve . utils . ParsedRequest ` ` . This contains all the constraints that must be fulfilled in order to satisfy the original request ( where and sort parts paging etc ) . Be warned that ` where ` and ` sort ` expresions will need proper parsing according to the syntax that you want to support with your driver . For example ` ` eve . io . Mongo ` ` supports both Python and Mongo - like query syntaxes .
sub_resource_lookup
sub-resoue lookup from the endpoint url.
sub - resoue lookup from the endpoint url .