Firestore Plugin
This plugin allows you connect with firebase firestore (please use corona 2019.3497+)
Platforms: iOS 8+, macOS 10.13, and Android 6+
Functions:
firestore.init()
-- setup firebasefirestore.setData(collection, document, data, listener)
collection(string) path to collection
document(string) document name to set data
data(table) table of what to set the data as
listener(function) returns event.isError and event.error if isError == true
firestore.updateData(collection, document, data, listener)
collection(string) path to collection
document(string) document name to update data
data(table) table of what to update the data as
listener(function) returns event.isError and event.error if isError == true
firestore.readDataInDocument(collection, document, listener)
collection(string) path to collection
document(string) document name to read data
listener(function) returns event.isError and event.error if isError == true and returns event.data if isError == false
firestore.readDataInCollection(collection, listener, field, isDescending, limitedTo, quereyType, querey)
collection(string) path to collection
listener(function) returns event.isError and event.error if isError == true and returns event.data if isError == false
field(string)(optional) sorts data by field
isDescending(boolean)(optional) set desending with boolean
limitedTo(number)(optional) limit results by a number
quereyType(string)(optional) querey types are "=", ">", "<", "<=", and ">="
querey(number or string)(optional) querey for quereyType
firestore.deleteData(collection, document, field, listener)
collection(string) path to collection to delete
document(string)(optional) document to delete
field(string)(optional) field to delete
listener(function) returns event.isError and event.error if isError == true
firestore.checkRealtime(collection, document, listener)
-- listener will fire everytime a selected document is updatedcollection(string) path to collection
document(string) document name to listen for data
listener(function) returns event.isError and event.error if isError == true and returns event.data if isError == false