如何在MySQL和节点js中检索对象?
name
,create
,id
... list_id
,name
,price
,id
... product_id
,name
,isshipping
,{
lists: [{
id: 1,
name: 'my list of my products',
created: 'today',
products:[{
name: 'my product',
price: '$1',
metadata: {
name: 'some metaname',
isshipping: true
},
....
},
....
]
}
...]
}
... 我想从表中获取此对象:
-static
-release
-prefix /opt/Qt-5.8.1
-confirm-license
-nomake examples
-nomake tests
-opensource
-qt-xcb
-no-sql-psql
-skip qt3d
-fontconfig
如何使用一个查询来完成?