Is it better to use the n/query module than the n/search module because the former supports muti-joins? Or is n/search still the default and n/query is used only as a last resort? What do you think is the best practice?
j
jen
08/19/2024, 5:00 AM
Honestly depends on your use case. I almost exclusively use N/query because I’m usually multi-joining and I find it way faster to write my code using SQL as I have lots of experience using it.
jen
08/19/2024, 5:01 AM
but for simple lookups or code that you want other NS devs (who might now know SQL) to be able to read and understand, N/search would be a better choice.