이렇게 되어있고, 테스트 쿼리도 정상적으로 검색이 되는데.. (그냥 index로 했을 때 잘 됐습니다.)
MongoServerError: "text.query" is required
at Connection.onMessage (C:\Users\alecs\Documents\GitHub\SYMBTI\node_modules\mongodb\lib\cmap\connection.js:202:26)
at MessageStream.<anonymous> (C:\Users\alecs\Documents\GitHub\SYMBTI\node_modules\mongodb\lib\cmap\connection.js:61:60)
at MessageStream.emit (node:events:519:28)
at processIncomingData (C:\Users\alecs\Documents\GitHub\SYMBTI\node_modules\mongodb\lib\cmap\message_stream.js:124:16)
at MessageStream._write (C:\Users\alecs\Documents\GitHub\SYMBTI\node_modules\mongodb\lib\cmap\message_stream.js:33:9)
at writeOrBuffer (node:internal/streams/writable:564:12)
at _write (node:internal/streams/writable:493:10)
at Writable.write (node:internal/streams/writable:502:10)
at TLSSocket.ondata (node:internal/streams/readable:1007:22)
at TLSSocket.emit (node:events:519:28) {
ok: 0,
code: 8,
codeName: 'UnknownError',
'$clusterTime': {
clusterTime: Timestamp { low: 2, high: 1721999546, unsigned: true },
signature: {
hash: Binary {
sub_type: 0,
buffer: Buffer(20) [Uint8Array] [
175, 188, 182, 215, 232, 4,
102, 4, 93, 179, 166, 145,
121, 249, 248, 112, 121, 145,
159, 253
],
position: 20
},
keyId: Long { low: 7, high: 1713457117, unsigned: false }
}
},
operationTime: Timestamp { low: 2, high: 1721999546, unsigned: true },
[Symbol(errorLabels)]: Set(0) {}
}
Node.js v20.13.1
[nodemon] app crashed - waiting for file changes before starting...
자꾸 이렇게 에러가 뜨는데 text.query가 대체 뭔지 모르겠슴다...