0

I want a query for storing the data from an array in multiple rows with same id using typeorm postgres in nestjs. Note: I'm using one-to-many, many-to-one relationship for storing data. like a user can likes multiple books at a time so that I'm storing bookId in different rows with same userId in "Like" entity....so please help me to store data using query in typeorm. This help will be appreciated, thanks.

2
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. Commented Oct 17, 2022 at 2:59
  • Welcome to the SO community. The community will help with your issues, but there are certain expectations on you. Please take a few minuets to take the Tour and review How to Ask. Then update your question to include sample data, table definition (ddl scripts), the expected results of that data and what you have tried, all as text - no images. Commented Oct 18, 2022 at 2:01

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.