google-cloud-firestore

Using setData with merge: true in the new FlutterFire API

≯℡__Kan透↙ 提交于 2020-11-30 00:18:39
问题 I am updating my old flutter code with the new FlutterFire API. I use a setData with merge: true in one of my functions to update some document fields that are saved in a Map. I do change setData to set , but I get an error with the new FlutterFire plugin that "merge" isn't defined. I found in the migration docs that setData/set now supports SetOptions to merge data/fields (previously this accepted a Map) The document reference also says: /// If [SetOptions] are provided, the data will be

(Unity) How to test Firebase multiplayer build and editor at the same time? [closed]

巧了我就是萌 提交于 2020-11-29 21:09:39
问题 Closed. This question needs debugging details. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 days ago . Improve this question I'm getting really frustrated with @Frank-van-Puffelen who closed my questions just because they don't contain minimum reproducible code. This is a valid question and there are useful answers out there. I made a duplicate question because I felt my first (this one) was closed

(Unity) How to test Firebase multiplayer build and editor at the same time? [closed]

夙愿已清 提交于 2020-11-29 21:07:39
问题 Closed. This question needs debugging details. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 days ago . Improve this question I'm getting really frustrated with @Frank-van-Puffelen who closed my questions just because they don't contain minimum reproducible code. This is a valid question and there are useful answers out there. I made a duplicate question because I felt my first (this one) was closed

SwiftUI Async data fetch in onAppear

ⅰ亾dé卋堺 提交于 2020-11-29 14:39:22
问题 I have class getDataFromDatabase which has func readData() thats read data from Firebase. class getDataFromDatabase : ObservableObject { var arrayWithQuantity = [Int]() var arrayWithTime = [Double]() func readData(completion: @escaping(_ getArray: Array<Int>?,_ getArray: Array<Double>?) -> Void) { let db = Firestore.firestore() db.collection("amounts").getDocuments { (querySnapshot, err) in if let e = err{ print("There's any errors: \(e)") } if err != nil{ print((err?.localizedDescription)!)

SwiftUI Async data fetch in onAppear

坚强是说给别人听的谎言 提交于 2020-11-29 14:32:28
问题 I have class getDataFromDatabase which has func readData() thats read data from Firebase. class getDataFromDatabase : ObservableObject { var arrayWithQuantity = [Int]() var arrayWithTime = [Double]() func readData(completion: @escaping(_ getArray: Array<Int>?,_ getArray: Array<Double>?) -> Void) { let db = Firestore.firestore() db.collection("amounts").getDocuments { (querySnapshot, err) in if let e = err{ print("There's any errors: \(e)") } if err != nil{ print((err?.localizedDescription)!)

SwiftUI Async data fetch in onAppear

大城市里の小女人 提交于 2020-11-29 14:29:51
问题 I have class getDataFromDatabase which has func readData() thats read data from Firebase. class getDataFromDatabase : ObservableObject { var arrayWithQuantity = [Int]() var arrayWithTime = [Double]() func readData(completion: @escaping(_ getArray: Array<Int>?,_ getArray: Array<Double>?) -> Void) { let db = Firestore.firestore() db.collection("amounts").getDocuments { (querySnapshot, err) in if let e = err{ print("There's any errors: \(e)") } if err != nil{ print((err?.localizedDescription)!)

Query Document Based on Regex in Firestore [duplicate]

一曲冷凌霜 提交于 2020-11-29 09:45:18
问题 This question already has answers here : Query over list in firebase (2 answers) Closed 7 months ago . I want to query a document in Firestore using a regex. This is because in order to add a search functionality into my Flutter app, I need to be able to create a query based on the search. For example if the user types: 'alice' -- I would have a regex that would look like (?i)alice and I would query firestore for any documents that the name field meets this regex, whether it be Alice, Alice

Query Document Based on Regex in Firestore [duplicate]

被刻印的时光 ゝ 提交于 2020-11-29 09:45:05
问题 This question already has answers here : Query over list in firebase (2 answers) Closed 7 months ago . I want to query a document in Firestore using a regex. This is because in order to add a search functionality into my Flutter app, I need to be able to create a query based on the search. For example if the user types: 'alice' -- I would have a regex that would look like (?i)alice and I would query firestore for any documents that the name field meets this regex, whether it be Alice, Alice

firebase.storage() is not a function in JavaScript

ぃ、小莉子 提交于 2020-11-29 09:00:55
问题 I'm new to web development and firebase and a error is appearing to me. I've not been able to solve it so came here to seek for help. The error displayed is firebase.storage() is not a function . It seems that the firestorage is not set correctly in my computer. However, I've followed the instructions download from the google website itself and it did not change a thing. I've seen some other questions regarding this on Stack Overflow, but they use node or react which is not my case. Can

firebase.storage() is not a function in JavaScript

╄→гoц情女王★ 提交于 2020-11-29 09:00:37
问题 I'm new to web development and firebase and a error is appearing to me. I've not been able to solve it so came here to seek for help. The error displayed is firebase.storage() is not a function . It seems that the firestorage is not set correctly in my computer. However, I've followed the instructions download from the google website itself and it did not change a thing. I've seen some other questions regarding this on Stack Overflow, but they use node or react which is not my case. Can