‼️ BREAKING
queryFirestore()
does NOT return an object of items anymore. The second argument = true
does not change anything anymore the function always returns an array of objects now.
The second argument is used for serialization now, see below.
✨ New
queryFirestore(item, serialize)
now takes serialize
as second argument, which can be the following:
true
: addid
andpath
to the item (default)false
: add nothing to the itemfunction(doc): item
: A serialization function that takes a snapshot/doc and returns the item. You can do your own serialization in the function, like converting timestampts to date objects. See documentation for more info.