Skip to content
Advertisement

many to many relationship knex js

I am trying to fetch data from the database in this way: I want all the templates and those templates have an array of categories in it so

the methode I am currently using

currently I am doing this but the object doesn’t seem to alter.

Advertisement

Answer

You are not waiting for the promises to resolve. You should do:

instead of

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