Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created hydratation system for queries #107

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

RubixR4
Copy link

@RubixR4 RubixR4 commented Apr 16, 2020

I modified the factory class to hydrate any query results based on the schema. You can write any custom query and hydrate the result object with all linked relations and nodes if the relation aliases are in the query's "RETURN" clause. I did not do any automatic test and you will probably want to clean my code as I am still a beginner in node, but it can be a base to make something cleaner.

@RubixR4 RubixR4 marked this pull request as ready for review April 16, 2020 13:48
@adam-cowley
Copy link
Owner

Thanks for this. Could you add some tests and make sure they pass locally?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants