Skip to content

Instantly share code, notes, and snippets.

@jamesplease
Last active April 28, 2018 00:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamesplease/62f677f860463abf1bee651f3d39eefa to your computer and use it in GitHub Desktop.
Save jamesplease/62f677f860463abf1bee651f3d39eefa to your computer and use it in GitHub Desktop.
This API lets you "drill" into what you are trying to update.
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