Hi, I’m new to FQL and I’m trying to insert data to a collection in batches but I can’t figure out how to make my query work, any advise will be apreciated.
Map(
[
["123", "Prod1", "25.3", "10"],
["124", "Prod2", "16.22", "20"],
["125", "Prod3", "9.65", "100"]
],
Do(
Lambda(
["id", "name", "price", "stock"],
Create(Ref(Collection("products"), "id"), {
data: { name: Var("name"), price: Var("price"), stock: Var("stock") }
})
)
)
)