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

How to make a model to take objects within objects and duplicate the lines when this occurs? #7

Open
tarcisiomacci opened this issue Nov 10, 2023 · 0 comments

Comments

@tarcisiomacci
Copy link

tarcisiomacci commented Nov 10, 2023

Hello! I'm new to using NodeJs and I thought your project was amazing, so I'm using it to help me.
However, I'm trying to do something that I don't understand how to execute within your project.
How can I get objects nested inside another object and the lines multiply according to the recurrence of these cases?
It's similar to a 1-to-many Inner Join.
Example:
Table A has one row with ID = X and Table B has 7 rows with ID = X and Collumn NAME = [a,b,c,d,e,f,g].
When I do the INNER JOIN the end result is a single table with 7 Rows:
ID NAME
X a
X b
X c
X d
X e
X f
X g

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

No branches or pull requests

1 participant