Can now use pipeline as query
This commit is contained in:
1 parent
41552040cc
commit
e305aa8f2a
16 files changed
+323
-123
No files matched your search
@@ -30,7 +30,7 @@ directive = () ->
|
||||
return "#/#{rp.server}/#{rp.database}/#{rp.collection}/_id/#{s.docId}/field/#{s.key}"
|
||||
$scope.isObjectId = (val) ->
|
||||
objectIdRegexp = /^[01234567890abcdef]{24}$/
|
||||
return _.isString(val) and objectIdRegexp.test(val)
|
||||
_.isString(val) and objectIdRegexp.test(val)
|
||||
|
||||
$scope.getDateFromObjectId = (objectId) ->
|
||||
util.parseObjectId(objectId).date.toISOString()
|
||||
|
||||
Reference in new issue
Block a user