Neo4j Spring Data in field context

Hi!

I'm working with a community edition at the moment.
I have several consumers that I want to separate between their graphs in the same db.
I have a field customerId that 's added to each node, I can index it too.
How can i make mike spring data repositories include this field by default, so all other programmers wouldn't have to remember to add this costumer context? example:

What I have now:

@Repository
public interface SomeObjRepository extends Neo4jRepository<SomeObjEntity, String> {
    List<SomeObjEntity> findAllByCustomerId(String customerId);
    List<SomeObjEntity> findByNameAndCustomerId(String name, String customerId);
}

@Repository
public interface SomeOtherObjRepository extends Neo4jRepository<SomeOtherObjEntity, String> {
    List<SomeOtherObjEntity> findAllByCustomerId(String customerId);
    List<SomeOtherObjEntity> findByPriceAndCustomerId(String price, String customerId);
}

What I would like to have:

@Repository
public interface BaseObjRepository extends Neo4jRepository<BaseObjEntity, String> {
    // Auto fetch by customer id from the spring app context or something
    List<BaseObjEntity> findAll();
    List<BaseObjEntity> findByX(String x);
}

Thanks!

Hello! This is currently not possible in Spring Data Neo4j. Sorry we couldn't be more help!

Cheers,
Jennifer