i need to get count of item has been sold so iam exporting my firestore data to big query
i have collection in firestore and i have array of object
i need to export forestore data to big query
line_items
[
{
price:10,
qyt:2,
name:car
},
{
price:4,
qyt:1,
name:pen
},
]
i have created schema.json and added the type as array and exported the collection data
{
"name": "line_items",
"type": "array"
}
now iam trying to write query in cloud.google to get this result in
name |qty
car | 2
pen | 1
my issue im not able to convert my array of object to columns so i can get the counts of item qty has been sold
this is how the data looks in big query it is not showing as array of object