Closed schabluk closed 9 years ago
From usage examples:
friends = Meteor.neo4j.collection 'friends' friends.publish 'allFriends', () -> return "MATCH (user {_id: {userId}})-[:FriendOf]->(friends) RETURN friends" friends.subscribe 'allFriends', {userId: Meteor.userId()}, 'friends'
The link parameter in subscribe method is a single node. How can I get multiple nodes from subscription, when my publish funtion returns more than one node?
friends.publish 'allFriends', () -> return "MATCH (user {_id: {userId}})-[:FriendOf]->(friends) RETURN user, friends"
Hi @schabluk Currently only creating multiple subscriptions for each object.
But major driver release is coming soon (1-2 days), there is this issue will be solved.
Great, thank you!
From usage examples:
The link parameter in subscribe method is a single node. How can I get multiple nodes from subscription, when my publish funtion returns more than one node?