From b14339d93bd48ec97a8861d2c75309312cc40532 Mon Sep 17 00:00:00 2001 From: Haydn Ewers Date: Fri, 21 Aug 2015 16:51:14 +0930 Subject: [PATCH] Update the example in the README. --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b92edcd..0197263 100644 --- a/README.md +++ b/README.md @@ -17,13 +17,13 @@ now you can just push the responses from your own requests to the store: var store = new Store(); // Define the "categories" type. -store.define("categories", { +store.define([ "categories", "category" ], { title: Store.attr(), - products: Store.hasMany({ inverse: "category" }) + products: Store.hasMany() }); // Define the "products" type. -store.define("products", { +store.define([ "products", "product" ], { title: Store.attr(), category: Store.hasOne() }); -- 2.51.2