我正在使用breeze-mongo節點模塊,並且在執行帶有撇號的實體名稱的查詢時服務器正在拋出異常。breeze js apostraphe導致查詢失敗
查詢例如:
EntityQuery.from('People')
.where('name', '==', "brian's")
Error: Unable to parse filterExpr: name eq 'brian's' at parse (/node/api/node_modules/breeze-mongodb/mongoQuery.js:108:19) at MongoQuery._parseUrl (/node/api/node_modules/breeze-mongodb/mongoQuery.js:29:26) at new MongoQuery (/node/api/node_modules/breeze-mongodb/mongoQuery.js:21:10) at getVideos (/node/api/api.js:102:19) at callbacks (/node/api/node_modules/express/lib/router/index.js:161:37) at param (/node/api/node_modules/express/lib/router/index.js:135:11) at pass (/node/api/node_modules/express/lib/router/index.js:142:5) at Router._dispatch (/node/api/node_modules/express/lib/router/index.js:170:5) at Object.router (/node/api/node_modules/express/lib/router/index.js:33:10) at next (/node/api/node_modules/express/node_modules/connect/lib/proto.js:190:15)
是否撇號不支持?