Skip to content

Commit 8fe4c4f

Browse files
committed
Fix API description.
1 parent 2d9b94e commit 8fe4c4f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,11 @@ console.log(article.serialize({ attributes: ['title'], relationships: []}));
133133
- `.setRelationship(relname, models)`: set or modify relationship of model
134134

135135
`JsonApiDataStore`
136-
- `.sync(payload)`: syncs the models described by the payload with the store, and returns the synched models
136+
- `.graph[modelType]`: get a reference to all models of type `modelType`
137+
- `.sync(payload)`: sync the models described by the payload with the store, and returns the synched models
137138
- `.find(type, id)`: retrieve a model by `type` and `id`
138139
- `.destroy(model)`: remove a model from the store
139-
- `.reset()`: empties the store
140+
- `.reset()`: empty the store
140141

141142
## What's missing
142143

0 commit comments

Comments
 (0)