Skip to content
Advertisement

How do I translate this SQL query to Typeorm

I have this query that I tested in the query tool, and I now wish to apply this into Typeorm syntax

I have tried this approach but it’s not 100% correct:

Advertisement

Answer

Assuming your class defined for the entity menu_entry is MenuEntry, typeorm query statement would be as follows-

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement