caminte icon indicating copy to clipboard operation
caminte copied to clipboard

Redis - find 'in' has different result when I pass same value directly

Open kmlwlkwk opened this issue 8 years ago • 0 comments

I noticed difference in result when I'm using in in queries:

          models
                .Event
                .find(
                    {
                        where: {socketId: {in: [1198]}}
                    },
                    function (error, events) {
                        // events = []
                    }
                );

and

          models
                .Event
                .find(
                    {
                        where: {socketId: 1198}
                    },
                    function (error, events) {
                        // events = [{Object}]
                    }
                );

Did I missed something?

kmlwlkwk avatar Feb 19 '17 22:02 kmlwlkwk