From 1bb0eb097f4d223be953c64b43d968fccfc69e59 Mon Sep 17 00:00:00 2001 From: Tim Lux Date: Thu, 12 Jul 2018 19:43:30 -0700 Subject: [PATCH] ISSUE-25 - added support for IN --- modules/cbmongodb/models/ActiveEntity.cfc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/cbmongodb/models/ActiveEntity.cfc b/modules/cbmongodb/models/ActiveEntity.cfc index 0d74830..b34533f 100644 --- a/modules/cbmongodb/models/ActiveEntity.cfc +++ b/modules/cbmongodb/models/ActiveEntity.cfc @@ -47,6 +47,7 @@ component name="CFMongoActiveEntity" extends="cbmongodb.models.BaseDocumentServi '>=', '<=', '<>', + 'IN', 'like' ]); @@ -176,6 +177,9 @@ component name="CFMongoActiveEntity" extends="cbmongodb.models.BaseDocumentServi case '<=': VARIABLES._criteria[ARGUMENTS.key]={"$lte"=ARGUMENTS.value}; break; + case 'IN': + VARIABLES._criteria[ARGUMENTS.key]={"$in"=ARGUMENTS.value}; + break; default: VARIABLES._criteria[ARGUMENTS.key]=ARGUMENTS.value; break;