From f4b676c35986af68290bd34145150cefc271b850 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 22 Feb 2016 21:10:42 -0700 Subject: [PATCH] note create(id, obj) --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 1a9ff7e..314e1d2 100644 --- a/README.md +++ b/README.md @@ -83,6 +83,7 @@ It's kinda CRUDdy... but don't let that scare you. * `upsert(id, data)` - creates or updates based on existence in DB (use this) * modifies `createdAt` and or `updatedAt` +* `create(id, obj)` - same as above, but fails if the object exists * `save(data)` - (just don't use this, please) creates or updates based on presence of ID * `destroy(id)` - mark a record as `deletedAt` from DB * `get(id)` - grab one by id