Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
lupas committed Nov 22, 2018
1 parent 360ca46 commit e3d83a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import { unwrapFirestoreDoc } from 'firewings'

## queryFirestore()

This function gets you an (array of) item(s) from Firestore document without caring about loops or accessing the data() fron the snapshot. Just get the objects right away.
This function gets you an item or an array of items from a Firebase query without you having to care about loops or getting the data from the snapshot. You'll just get the objects right away.

And in addition you get the documents `id` and `path` for on every object, too.

Expand Down Expand Up @@ -80,7 +80,7 @@ const city = await queryFirestore(query).catch(e => {

## unwrapFirestoreDoc()

This function unwraps a Firestore snapshot of a single- or multiple-document query and returns the items' data as objects. Either as an array of objects or as a single object.
This function unwraps a Firestore snapshot of a single- or multiple-document query and returns the item(s)' data as objects. Either as an array of objects or as a single object.

Additionally, it adds the documents `id` and `path` to every item.

Expand Down

0 comments on commit e3d83a8

Please sign in to comment.