I don't really have the code for this yet but I have the opposite of what I need
current_user.friends(:f).match_to(event)
This is going to return the friends that have a relationship to my event node. What I need is the ones that don't have this relationship.
Do I have to feed it something like in the docs
blog.query_as(:blog).match("blog<-[:COMMENTS_ON]-(:Comment)<-[:AUTHORED]-(author:Person)").where("author.age > 30").pluck(:author)
but nil the relationship?
so something like
current_user.friends.query_as(:f).match("event<-[invite:invited]-(f:User)).where(invite: nil)
Or is there another way?