no-rest.js
function _create(crud, schema, data) {
	if (data._id) delete data._id; //This is a mongodb thing.

	if (data[schema.primaryKey]) delete data[schema.primaryKey];

	if (schema.storageType !== "gcs") {
		data = _scrubDatum(schema, data);
	}

	return crud.execute(schema, crud.operations.CREATE, data)
		.then(function (result) {
			if (schema.storageType === "gcs") {
				return result;
			} else {
				data[schema.primaryKey] = result.insertId;

				var r = _transformDatum(schema, data);
				return r;
			}
		});
}
function _create(crud, schema, data) {
	if (data._id) delete data._id; //This is a mongodb thing.

	if (data[schema.primaryKey]) delete data[schema.primaryKey];

	if (schema.storageType !== "gcs") {
		data = _scrubDatum(schema, data);
	}

	return crud.execute(schema, crud.operations.CREATE, data)
		.then(function (result) {
			if (schema.storageType === "gcs") {
				return result;
			} else {
				data[schema.primaryKey] = result.insertId;

				var r = _transformDatum(schema, data);
				return r;
			}
		});
}
CRUD Aliases