Skip to content

[Feature Request]: Eager loading relationships #25

@litewarp

Description

@litewarp

So I'm building a graphql layer on top of my db using neogma instead of going with the @neo4j/graphql package. One feature I've seen in a different ogm Neode is eager loading.

The code for Neode's implementation doesn't seem too advanced, especially since you've already put in logic for fetching relationships, so the big addition would be a recursion function that walks down a level or two.

Do you think this is doable? It would help gratefully in creating root resolvers that can fetch the entire tree in one db trip instead of having to break it out in to multiple requests. It's certainly not necessary though. Just a nice feature to have.

Thanks again for your package and all your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions