Store 2d Array in Firestore?
问题 What's the best practice to save/return a 2d array in Firestore? Instead of creating a new collection for each array, is there a more efficient say of keeping the data structure together? Thanks! struct appleCounter { var tree = [branches] } var branches = [Int]() let treeFullOfApples = [[10, 10, 10, 10], [10, 10, 10, 10], [10, 10, 10, 10], [10, 10, 10, 10]] let morningCount = appleCounter{ tree: treeFullOfApples } 回答1: The structure should be fairly straightforward arrays //collection array