Skip to content

v1.0.0

Latest
Compare
Choose a tag to compare
@lupas lupas released this 10 Apr 15:00
· 20 commits to master since this release
ad729a3

‼️ 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: add id and path to the item (default)
  • false: add nothing to the item
  • function(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.