diff --git a/docs/2-retrieving-data-as-objects.md b/docs/2-retrieving-data-as-objects.md index 951ab1963..8d48a0cd0 100644 --- a/docs/2-retrieving-data-as-objects.md +++ b/docs/2-retrieving-data-as-objects.md @@ -31,20 +31,16 @@ export class AppComponent { Data is retrieved through the `af.database` service. -There are three ways to create an object binding: +There are two ways to create an object binding: 1. Relative URL -2. Absolute URL -3. Reference +1. Absolute URL ```ts // relative URL, uses the database url provided in bootstrap const relative = af.database.object('/item'); // absolute URL const absolute = af.database.object('https://.firebaseio.com/item'); -// database reference -const dbRef = new Firebase('https://.firebaseio.com/item'); -const relative = af.database.object(dbRef); ``` ### Retrieve data diff --git a/docs/3-retrieving-data-as-lists.md b/docs/3-retrieving-data-as-lists.md index 51a7c3aea..9920d120f 100644 --- a/docs/3-retrieving-data-as-lists.md +++ b/docs/3-retrieving-data-as-lists.md @@ -32,21 +32,21 @@ Data is retrieved through the `af.database` service. There are four ways to create an object binding: 1. Relative URL -2. Absolute URL -3. Reference -4. Query +1. Absolute URL +1. Query ```ts // relative URL, uses the database url provided in bootstrap const relative = af.database.list('/items'); // absolute URL const absolute = af.database.list('https://.firebaseio.com/items'); -// database reference -const dbRef = new Firebase('https://.firebaseio.com/items'); -const relative = af.database.list(dbRef); // query -const dbQuery = new Firebase('https://.firebaseio.com/items').limitToLast(10); -const queryList = af.database.list(dbQuery); +const queryList = af.database.list('/items', { + query: { + limitToLast: 10, + orderByKey: true + } +}); ``` ### Retrieve data