Last active
April 28, 2018 00:10
-
-
Save jamesplease/62f677f860463abf1bee651f3d39eefa to your computer and use it in GitHub Desktop.
This API lets you "drill" into what you are trying to update.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
update({ | |
books: { | |
24: { | |
name: 'Lord of the Rings' | |
} | |
} | |
}); | |
update('books', { | |
24: { | |
name: 'Lord of the Rings' | |
} | |
}); | |
update('books.24', { | |
name: 'Lord of the Rings' | |
}); | |
// deletes too | |
deleteResources({ | |
books: { | |
lists: ['blah'], | |
}, | |
}); | |
deleteResources('books.lists', ['blah']); | |
deleteResources('books.resources', [1, 50]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment