diff --git a/src/adapters/lokijs/worker/encodeQuery/index.js b/src/adapters/lokijs/worker/encodeQuery/index.js
index <HASH>..<HASH> 100644
--- a/src/adapters/lokijs/worker/encodeQuery/index.js
+++ b/src/adapters/lokijs/worker/encodeQuery/index.js
@@ -88,9 +88,15 @@ const noNullComparisons: OperatorFunction => OperatorFunction = operator => valu
   $and: [operator(value), weakNotEqual(null)],
 })
 
-const like: OperatorFunction = value => ({
+const like: OperatorFunction = value => {
+  if (typeof value === 'string') {
+    return {
       $regex: likeToRegexp(value),
-    })
+    }
+  }
+
+  return {}
+}
 
 const operators: { [Operator]: OperatorFunction } = {
   eq: objOf('$aeq'),
likeToRegexp allow only query in string