alfateam/orange-orm

What is the property "lines: true" that I see in almost every example?

Closed this issue · 2 comments

Hello, this project seems promising and I was looking through the docs and I saw this property "lines: true" in almost every query, I want to know what is it for?

lroal commented

It means you should include the lines relation in the result.

Instead of true, you could also specify which specific columns you want included/excluded.

Btw
You can try out the examples live with the SQLite database on your computer. SQLite db is just a file.

lroal commented

if {lines: true} is missing or false, order.lines would be undefined.

Same goes for deliveryAddress and customer.