berrybeat / Neo4j.Berries.OGM

This repository adds an OGM functionality for csharp
https://berrybeat.com/
MIT License
27 stars 4 forks source link

Returning both Movie and Actors in the match #59

Open slowboy121 opened 2 months ago

slowboy121 commented 2 months ago

This is a great library.

Not sure if this is an issue or a missing feature.

When doing a match returning both the match nodes and relation nodes as the match has a placeholder for a list of relation nodes.

It creates the relation nodes perfectly fine when saving to the graph.

Or do I need to use a custom cypher query to retrieve both?

farhadnowzari commented 2 months ago

This is a great library.

Not sure if this is an issue or a missing feature.

When doing a match returning both the match nodes and relation nodes as the match has a placeholder for a list of relation nodes.

It creates the relation nodes perfectly fine when saving to the graph.

Or do I need to use a custom cypher query to retrieve both?

We should add this feature. It is related to https://github.com/berrybeat/Neo4j.Berries.OGM/issues/6 .

At the moment the match for example will return All the people who ACTED_IN a specific movie and it won't load the movie object into the person object by eager/lazy loading.

Also when https://github.com/berrybeat/Neo4j.Berries.OGM/issues/1 is done, we can return the edge itself as well.

These two should be available after 1.4.0 released. At the moment 1.3.0 is still under test.