-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MongoDB Search Strategy #1204
Comments
Hi Sean, Do the other parts of Vendure seem to work with Mongo? In the TypeORM docs it states that I do not plan to support Mongo, so I won't be adding official support to the default search plugin, sorry. I'm interested to learn more about why you would like to use Mongo to power Vendure though. Could you tell me a bit about your use-case? |
Good Morning @michaelbromley, I'll test out the functionality this week by hacking the switch case or changing the Use case wise I'm uncertain how much I can say, although the general points are the flexibility of MongoDB without having a strict schema, being able to loosely type with Typescript, then horizontal scaling. |
Ok! A quicker way to check whether the other functionality works with Mongo would be to just omit the |
Yeah, I need to poke into it between meeting, but I received the following logs when removing the sean@pop-os:~/temp/e2e-vendure/sean@pop-os:~/temp/e2e-vendure/project-name$ npm run start
> [email protected] start
> concurrently yarn:run:*
yarn run v1.22.17
yarn run v1.22.17
$ ts-node ./src/index.ts
$ ts-node ./src/index-worker.ts
[run:server] info 02/11/21, 12:41 - [Vendure Server] Bootstrapping Vendure Server (pid: 7170)...
[run:worker] info 02/11/21, 12:41 - [Vendure Worker] Bootstrapping Vendure Worker (pid: 7181)...
[run:worker] warn 02/11/21, 12:41 - [Vendure Worker] Awaiting DB schema creation... (attempt 0)
[run:worker] warn 02/11/21, 12:41 - [Vendure Worker] Awaiting DB schema creation... (attempt 1)
[run:worker] warn 02/11/21, 12:41 - [Vendure Worker] Awaiting DB schema creation... (attempt 2)
[run:worker] warn 02/11/21, 12:41 - [Vendure Worker] Awaiting DB schema creation... (attempt 3)
[run:worker] warn 02/11/21, 12:41 - [Vendure Worker] Awaiting DB schema creation... (attempt 4)
[run:worker] warn 02/11/21, 12:41 - [Vendure Worker] Awaiting DB schema creation... (attempt 5)
[run:worker] warn 02/11/21, 12:41 - [Vendure Worker] Awaiting DB schema creation... (attempt 6)
[run:worker] warn 02/11/21, 12:41 - [Vendure Worker] Awaiting DB schema creation... (attempt 7)
[run:worker] warn 02/11/21, 12:41 - [Vendure Worker] Awaiting DB schema creation... (attempt 8)
[run:worker] warn 02/11/21, 12:41 - [Vendure Worker] Awaiting DB schema creation... (attempt 9)
[run:worker] warn 02/11/21, 12:41 - [Vendure Worker] Awaiting DB schema creation... (attempt 10)
[run:worker] warn 02/11/21, 12:41 - [Vendure Worker] Awaiting DB schema creation... (attempt 11)
[run:worker] warn 02/11/21, 12:41 - [Vendure Worker] Awaiting DB schema creation... (attempt 12)
[run:worker] warn 02/11/21, 12:41 - [Vendure Worker] Awaiting DB schema creation... (attempt 13)
[run:worker] warn 02/11/21, 12:41 - [Vendure Worker] Awaiting DB schema creation... (attempt 14)
[run:worker] warn 02/11/21, 12:41 - [Vendure Worker] Awaiting DB schema creation... (attempt 15)
[run:worker] warn 02/11/21, 12:41 - [Vendure Worker] Awaiting DB schema creation... (attempt 16)
[run:worker] warn 02/11/21, 12:41 - [Vendure Worker] Awaiting DB schema creation... (attempt 17)
[run:worker] warn 02/11/21, 12:41 - [Vendure Worker] Awaiting DB schema creation... (attempt 18)
[run:worker] error 02/11/21, 12:41 - [Vendure Worker] Timed out when awaiting the DB schema to be ready!
[run:worker] TypeError: Cannot read property 'prototype' of undefined
[run:worker] at FindCursor.cursor.toArray (/home/sean/temp/e2e-vendure/project-name/src/entity-manager/MongoEntityManager.ts:686:37)
[run:worker] at MongoEntityManager.<anonymous> (/home/sean/temp/e2e-vendure/project-name/src/entity-manager/MongoEntityManager.ts:104:23)
[run:worker] at step (/home/sean/temp/e2e-vendure/project-name/node_modules/typeorm/node_modules/tslib/tslib.js:141:27)
[run:worker] at Object.next (/home/sean/temp/e2e-vendure/project-name/node_modules/typeorm/node_modules/tslib/tslib.js:122:57)
[run:worker] at fulfilled (/home/sean/temp/e2e-vendure/project-name/node_modules/typeorm/node_modules/tslib/tslib.js:112:62)
[run:worker] TypeError: Cannot read property 'prototype' of undefined
[run:worker] at FindCursor.cursor.toArray (/home/sean/temp/e2e-vendure/project-name/src/entity-manager/MongoEntityManager.ts:686:37)
[run:worker] at MongoEntityManager.<anonymous> (/home/sean/temp/e2e-vendure/project-name/src/entity-manager/MongoEntityManager.ts:104:23)
[run:worker] at step (/home/sean/temp/e2e-vendure/project-name/node_modules/typeorm/node_modules/tslib/tslib.js:141:27)
[run:worker] at Object.next (/home/sean/temp/e2e-vendure/project-name/node_modules/typeorm/node_modules/tslib/tslib.js:122:57)
[run:worker] at fulfilled (/home/sean/temp/e2e-vendure/project-name/node_modules/typeorm/node_modules/tslib/tslib.js:112:62)
[run:server] info 02/11/21, 12:41 - [AssetServerPlugin] Creating asset server middleware
[run:server] info 02/11/21, 12:41 - [EmailPlugin] Creating dev mailbox middleware
[run:server] info 02/11/21, 12:41 - [AdminUiPlugin] Creating admin ui middleware (prod mode)
[run:server] info 02/11/21, 12:41 - [RoutesResolver] HealthController {/health}:
[run:server] info 02/11/21, 12:41 - [RouterExplorer] Mapped {/health, GET} route
[run:server] warn 02/11/21, 12:41 - [Vendure Server] Awaiting DB schema creation... (attempt 0)
[run:server] warn 02/11/21, 12:41 - [Vendure Server] Awaiting DB schema creation... (attempt 1)
[run:server] warn 02/11/21, 12:41 - [Vendure Server] Awaiting DB schema creation... (attempt 2)
[run:server] warn 02/11/21, 12:41 - [Vendure Server] Awaiting DB schema creation... (attempt 3)
[run:server] warn 02/11/21, 12:41 - [Vendure Server] Awaiting DB schema creation... (attempt 4)
[run:server] warn 02/11/21, 12:41 - [Vendure Server] Awaiting DB schema creation... (attempt 5)
[run:server] warn 02/11/21, 12:41 - [Vendure Server] Awaiting DB schema creation... (attempt 6)
[run:server] warn 02/11/21, 12:41 - [Vendure Server] Awaiting DB schema creation... (attempt 7)
[run:server] warn 02/11/21, 12:42 - [Vendure Server] Awaiting DB schema creation... (attempt 8)
[run:server] warn 02/11/21, 12:42 - [Vendure Server] Awaiting DB schema creation... (attempt 9)
[run:server] warn 02/11/21, 12:42 - [Vendure Server] Awaiting DB schema creation... (attempt 10)
[run:server] warn 02/11/21, 12:42 - [Vendure Server] Awaiting DB schema creation... (attempt 11)
[run:server] warn 02/11/21, 12:42 - [Vendure Server] Awaiting DB schema creation... (attempt 12)
[run:server] warn 02/11/21, 12:42 - [Vendure Server] Awaiting DB schema creation... (attempt 13)
[run:server] warn 02/11/21, 12:42 - [Vendure Server] Awaiting DB schema creation... (attempt 14)
[run:server] warn 02/11/21, 12:42 - [Vendure Server] Awaiting DB schema creation... (attempt 15)
[run:server] warn 02/11/21, 12:42 - [Vendure Server] Awaiting DB schema creation... (attempt 16)
[run:server] warn 02/11/21, 12:42 - [Vendure Server] Awaiting DB schema creation... (attempt 17)
[run:server] warn 02/11/21, 12:42 - [Vendure Server] Awaiting DB schema creation... (attempt 18)
[run:server] error 02/11/21, 12:42 - [Vendure Server] Timed out when awaiting the DB schema to be ready!
[run:server] TypeError: Cannot read property 'prototype' of undefined
[run:server] at FindCursor.cursor.toArray (/home/sean/temp/e2e-vendure/project-name/src/entity-manager/MongoEntityManager.ts:686:37)
[run:server] at MongoEntityManager.<anonymous> (/home/sean/temp/e2e-vendure/project-name/src/entity-manager/MongoEntityManager.ts:104:23)
[run:server] at step (/home/sean/temp/e2e-vendure/project-name/node_modules/typeorm/node_modules/tslib/tslib.js:141:27)
[run:server] at Object.next (/home/sean/temp/e2e-vendure/project-name/node_modules/typeorm/node_modules/tslib/tslib.js:122:57)
[run:server] at fulfilled (/home/sean/temp/e2e-vendure/project-name/node_modules/typeorm/node_modules/tslib/tslib.js:112:62)
[run:server] TypeError: Cannot read property 'prototype' of undefined
[run:server] at FindCursor.cursor.toArray (/home/sean/temp/e2e-vendure/project-name/src/entity-manager/MongoEntityManager.ts:686:37)
[run:server] at MongoEntityManager.<anonymous> (/home/sean/temp/e2e-vendure/project-name/src/entity-manager/MongoEntityManager.ts:104:23)
[run:server] at step (/home/sean/temp/e2e-vendure/project-name/node_modules/typeorm/node_modules/tslib/tslib.js:141:27)
[run:server] at Object.next (/home/sean/temp/e2e-vendure/project-name/node_modules/typeorm/node_modules/tslib/tslib.js:122:57)
[run:server] at fulfilled (/home/sean/temp/e2e-vendure/project-name/node_modules/typeorm/node_modules/tslib/tslib.js:112:62)
$ npm run start
> [email protected] start
> concurrently yarn:run:*
yarn run v1.22.17
yarn run v1.22.17
$ ts-node ./src/index.ts
$ ts-node ./src/index-worker.ts
[run:server] info 02/11/21, 12:41 - [Vendure Server] Bootstrapping Vendure Server (pid: 7170)...
[run:worker] info 02/11/21, 12:41 - [Vendure Worker] Bootstrapping Vendure Worker (pid: 7181)...
[run:worker] warn 02/11/21, 12:41 - [Vendure Worker] Awaiting DB schema creation... (attempt 0)
[run:worker] warn 02/11/21, 12:41 - [Vendure Worker] Awaiting DB schema creation... (attempt 1)
[run:worker] warn 02/11/21, 12:41 - [Vendure Worker] Awaiting DB schema creation... (attempt 2)
[run:worker] warn 02/11/21, 12:41 - [Vendure Worker] Awaiting DB schema creation... (attempt 3)
[run:worker] warn 02/11/21, 12:41 - [Vendure Worker] Awaiting DB schema creation... (attempt 4)
[run:worker] warn 02/11/21, 12:41 - [Vendure Worker] Awaiting DB schema creation... (attempt 5)
[run:worker] warn 02/11/21, 12:41 - [Vendure Worker] Awaiting DB schema creation... (attempt 6)
[run:worker] warn 02/11/21, 12:41 - [Vendure Worker] Awaiting DB schema creation... (attempt 7)
[run:worker] warn 02/11/21, 12:41 - [Vendure Worker] Awaiting DB schema creation... (attempt 8)
[run:worker] warn 02/11/21, 12:41 - [Vendure Worker] Awaiting DB schema creation... (attempt 9)
[run:worker] warn 02/11/21, 12:41 - [Vendure Worker] Awaiting DB schema creation... (attempt 10)
[run:worker] warn 02/11/21, 12:41 - [Vendure Worker] Awaiting DB schema creation... (attempt 11)
[run:worker] warn 02/11/21, 12:41 - [Vendure Worker] Awaiting DB schema creation... (attempt 12)
[run:worker] warn 02/11/21, 12:41 - [Vendure Worker] Awaiting DB schema creation... (attempt 13)
[run:worker] warn 02/11/21, 12:41 - [Vendure Worker] Awaiting DB schema creation... (attempt 14)
[run:worker] warn 02/11/21, 12:41 - [Vendure Worker] Awaiting DB schema creation... (attempt 15)
[run:worker] warn 02/11/21, 12:41 - [Vendure Worker] Awaiting DB schema creation... (attempt 16)
[run:worker] warn 02/11/21, 12:41 - [Vendure Worker] Awaiting DB schema creation... (attempt 17)
[run:worker] warn 02/11/21, 12:41 - [Vendure Worker] Awaiting DB schema creation... (attempt 18)
[run:worker] error 02/11/21, 12:41 - [Vendure Worker] Timed out when awaiting the DB schema to be ready!
[run:worker] TypeError: Cannot read property 'prototype' of undefined
[run:worker] at FindCursor.cursor.toArray (/home/sean/temp/e2e-vendure/project-name/src/entity-manager/MongoEntityManager.ts:686:37)
[run:worker] at MongoEntityManager.<anonymous> (/home/sean/temp/e2e-vendure/project-name/src/entity-manager/MongoEntityManager.ts:104:23)
[run:worker] at step (/home/sean/temp/e2e-vendure/project-name/node_modules/typeorm/node_modules/tslib/tslib.js:141:27)
[run:worker] at Object.next (/home/sean/temp/e2e-vendure/project-name/node_modules/typeorm/node_modules/tslib/tslib.js:122:57)
[run:worker] at fulfilled (/home/sean/temp/e2e-vendure/project-name/node_modules/typeorm/node_modules/tslib/tslib.js:112:62)
[run:worker] TypeError: Cannot read property 'prototype' of undefined
[run:worker] at FindCursor.cursor.toArray (/home/sean/temp/e2e-vendure/project-name/src/entity-manager/MongoEntityManager.ts:686:37)
[run:worker] at MongoEntityManager.<anonymous> (/home/sean/temp/e2e-vendure/project-name/src/entity-manager/MongoEntityManager.ts:104:23)
[run:worker] at step (/home/sean/temp/e2e-vendure/project-name/node_modules/typeorm/node_modules/tslib/tslib.js:141:27)
[run:worker] at Object.next (/home/sean/temp/e2e-vendure/project-name/node_modules/typeorm/node_modules/tslib/tslib.js:122:57)
[run:worker] at fulfilled (/home/sean/temp/e2e-vendure/project-name/node_modules/typeorm/node_modules/tslib/tslib.js:112:62)
[run:server] info 02/11/21, 12:41 - [AssetServerPlugin] Creating asset server middleware
[run:server] info 02/11/21, 12:41 - [EmailPlugin] Creating dev mailbox middleware
[run:server] info 02/11/21, 12:41 - [AdminUiPlugin] Creating admin ui middleware (prod mode)
[run:server] info 02/11/21, 12:41 - [RoutesResolver] HealthController {/health}:
[run:server] info 02/11/21, 12:41 - [RouterExplorer] Mapped {/health, GET} route
[run:server] warn 02/11/21, 12:41 - [Vendure Server] Awaiting DB schema creation... (attempt 0)
[run:server] warn 02/11/21, 12:41 - [Vendure Server] Awaiting DB schema creation... (attempt 1)
[run:server] warn 02/11/21, 12:41 - [Vendure Server] Awaiting DB schema creation... (attempt 2)
[run:server] warn 02/11/21, 12:41 - [Vendure Server] Awaiting DB schema creation... (attempt 3)
[run:server] warn 02/11/21, 12:41 - [Vendure Server] Awaiting DB schema creation... (attempt 4)
[run:server] warn 02/11/21, 12:41 - [Vendure Server] Awaiting DB schema creation... (attempt 5)
[run:server] warn 02/11/21, 12:41 - [Vendure Server] Awaiting DB schema creation... (attempt 6)
[run:server] warn 02/11/21, 12:41 - [Vendure Server] Awaiting DB schema creation... (attempt 7)
[run:server] warn 02/11/21, 12:42 - [Vendure Server] Awaiting DB schema creation... (attempt 8)
[run:server] warn 02/11/21, 12:42 - [Vendure Server] Awaiting DB schema creation... (attempt 9)
[run:server] warn 02/11/21, 12:42 - [Vendure Server] Awaiting DB schema creation... (attempt 10)
[run:server] warn 02/11/21, 12:42 - [Vendure Server] Awaiting DB schema creation... (attempt 11)
[run:server] warn 02/11/21, 12:42 - [Vendure Server] Awaiting DB schema creation... (attempt 12)
[run:server] warn 02/11/21, 12:42 - [Vendure Server] Awaiting DB schema creation... (attempt 13)
[run:server] warn 02/11/21, 12:42 - [Vendure Server] Awaiting DB schema creation... (attempt 14)
[run:server] warn 02/11/21, 12:42 - [Vendure Server] Awaiting DB schema creation... (attempt 15)
[run:server] warn 02/11/21, 12:42 - [Vendure Server] Awaiting DB schema creation... (attempt 16)
[run:server] warn 02/11/21, 12:42 - [Vendure Server] Awaiting DB schema creation... (attempt 17)
[run:server] warn 02/11/21, 12:42 - [Vendure Server] Awaiting DB schema creation... (attempt 18)
[run:server] error 02/11/21, 12:42 - [Vendure Server] Timed out when awaiting the DB schema to be ready!
[run:server] TypeError: Cannot read property 'prototype' of undefined
[run:server] at FindCursor.cursor.toArray (/home/sean/temp/e2e-vendure/project-name/src/entity-manager/MongoEntityManager.ts:686:37)
[run:server] at MongoEntityManager.<anonymous> (/home/sean/temp/e2e-vendure/project-name/src/entity-manager/MongoEntityManager.ts:104:23)
[run:server] at step (/home/sean/temp/e2e-vendure/project-name/node_modules/typeorm/node_modules/tslib/tslib.js:141:27)
[run:server] at Object.next (/home/sean/temp/e2e-vendure/project-name/node_modules/typeorm/node_modules/tslib/tslib.js:122:57)
[run:server] at fulfilled (/home/sean/temp/e2e-vendure/project-name/node_modules/typeorm/node_modules/tslib/tslib.js:112:62)
[run:server] TypeError: Cannot read property 'prototype' of undefined
[run:server] at FindCursor.cursor.toArray (/home/sean/temp/e2e-vendure/project-name/src/entity-manager/MongoEntityManager.ts:686:37)
[run:server] at MongoEntityManager.<anonymous> (/home/sean/temp/e2e-vendure/project-name/src/entity-manager/MongoEntityManager.ts:104:23)
[run:server] at step (/home/sean/temp/e2e-vendure/project-name/node_modules/typeorm/node_modules/tslib/tslib.js:141:27)
[run:server] at Object.next (/home/sean/temp/e2e-vendure/project-name/node_modules/typeorm/node_modules/tslib/tslib.js:122:57)
[run:server] at fulfilled (/home/sean/temp/e2e-vendure/project-name/node_modules/typeorm/node_modules/tslib/tslib.js:112:62)
|
Do you have |
Ahhh, yes, I had to set that to false since that caused some issues, my current redacted {
type: 'mongodb',
synchronize: false,
logging: false,
database: 'xxx',
url: 'mongodb+srv://xxxx:[email protected]/xxx?retryWrites=true&w=majority&useNewUrlParser=true&useUnifiedTopology=true',
port: 27017,
username: 'xxxx',
password: 'xxxxxxxxxxxxxxxxxx',
migrations: [path.join(__dirname, '../migrations/*.ts')],
} |
This is what happens when I have sean@pop-os:~/temp/e2e-vendure/project-name$ npm run start
> [email protected] start
> concurrently yarn:run:*
yarn run v1.22.17
yarn run v1.22.17
$ ts-node ./src/index.ts
$ ts-node ./src/index-worker.ts
[run:server] info 03/11/21, 09:47 - [Vendure Server] Bootstrapping Vendure Server (pid: 10849)...
[run:worker] info 03/11/21, 09:47 - [Vendure Worker] Bootstrapping Vendure Worker (pid: 10857)...
[run:worker] error 03/11/21, 09:47 - [TypeOrmModule] Unable to connect to the database. Retrying (1)...
[run:worker] MongoServerError: Error in specification { name: "IDX_a23445b2c942d8dfcae15b8de2", key: {}, unique: false, sparse: null, background: null } :: caused by :: Index keys cannot be empty.
[run:worker] at MessageStream.messageHandler (/home/sean/temp/e2e-vendure/project-name/node_modules/mongodb/src/cmap/connection.ts:740:20)
[run:worker] at MessageStream.emit (events.js:400:28)
[run:worker] at MessageStream.emit (domain.js:475:12)
[run:worker] at processIncomingData (/home/sean/temp/e2e-vendure/project-name/node_modules/mongodb/src/cmap/message_stream.ts:167:12)
[run:worker] at MessageStream._write (/home/sean/temp/e2e-vendure/project-name/node_modules/mongodb/src/cmap/message_stream.ts:64:5)
[run:worker] at writeOrBuffer (internal/streams/writable.js:358:12)
[run:worker] at MessageStream.Writable.write (internal/streams/writable.js:303:10)
[run:worker] at TLSSocket.ondata (internal/streams/readable.js:731:22)
[run:worker] at TLSSocket.emit (events.js:400:28)
[run:worker] at TLSSocket.emit (domain.js:475:12)
[run:server] error 03/11/21, 09:47 - [TypeOrmModule] Unable to connect to the database. Retrying (1)...
[run:server] MongoServerError: Error in specification { name: "IDX_a23445b2c942d8dfcae15b8de2", key: {}, unique: false, sparse: null, background: null } :: caused by :: Index keys cannot be empty.
[run:server] at MessageStream.messageHandler (/home/sean/temp/e2e-vendure/project-name/node_modules/mongodb/src/cmap/connection.ts:740:20)
[run:server] at MessageStream.emit (events.js:400:28)
[run:server] at MessageStream.emit (domain.js:475:12)
[run:server] at processIncomingData (/home/sean/temp/e2e-vendure/project-name/node_modules/mongodb/src/cmap/message_stream.ts:167:12)
[run:server] at MessageStream._write (/home/sean/temp/e2e-vendure/project-name/node_modules/mongodb/src/cmap/message_stream.ts:64:5)
[run:server] at writeOrBuffer (internal/streams/writable.js:358:12)
[run:server] at MessageStream.Writable.write (internal/streams/writable.js:303:10)
[run:server] at TLSSocket.ondata (internal/streams/readable.js:731:22)
[run:server] at TLSSocket.emit (events.js:400:28)
[run:server] at TLSSocket.emit (domain.js:475:12)
[run:worker] error 03/11/21, 09:47 - [TypeOrmModule] Unable to connect to the database. Retrying (2)...
[run:worker] MongoServerError: Error in specification { name: "IDX_a23445b2c942d8dfcae15b8de2", key: {}, unique: false, sparse: null, background: null } :: caused by :: Index keys cannot be empty.
[run:worker] at MessageStream.messageHandler (/home/sean/temp/e2e-vendure/project-name/node_modules/mongodb/src/cmap/connection.ts:740:20)
[run:worker] at MessageStream.emit (events.js:400:28)
[run:worker] at MessageStream.emit (domain.js:475:12)
[run:worker] at processIncomingData (/home/sean/temp/e2e-vendure/project-name/node_modules/mongodb/src/cmap/message_stream.ts:167:12)
[run:worker] at MessageStream._write (/home/sean/temp/e2e-vendure/project-name/node_modules/mongodb/src/cmap/message_stream.ts:64:5)
[run:worker] at writeOrBuffer (internal/streams/writable.js:358:12)
[run:worker] at MessageStream.Writable.write (internal/streams/writable.js:303:10)
[run:worker] at TLSSocket.ondata (internal/streams/readable.js:731:22)
[run:worker] at TLSSocket.emit (events.js:400:28)
[run:worker] at TLSSocket.emit (domain.js:475:12) |
Ok, that confirms my suspicion that there would be a lot more incompatible with Mongo than just the search strategy. Basically if you want to use Vendure, you need to use one of the supported relational DBs. I'm pretty certain that relational DBs are a better fit for the types of data we are modelling in Vendure anyway. |
If you know what either TypeORM doesn't cover, or what you've had to write on top of / extend TypeORM for custom functions (like the Search Strategies, where you've written implementations for |
Just had a look through the TypeORM issues and it seems like the MongoDB driver does not support:
which are absolute show-stoppers right there. Unless those features get proper support, there's basically no possibility that Vendure will work with Mongo. |
Is your feature request related to a problem? Please describe.
Due to the
DefaultSeachPlugin
within@vendure/core
not having an implemented MongoDB Search Strategy, even if I configureVendureConfig
correctly using the TypeORM MongoDB Connection settings (as mentioned in #132 (comment) from 2019), I still receive the following error.Looking at #505 I could modify the following line so I no longer get the
error.database-not-supported-by-default-search-plugin
error, although that doesn't add the functionality magically.vendure/packages/core/src/plugin/default-search-plugin/fulltext-search.service.ts
Lines 110 to 128 in 3460536
Describe the solution you'd like
A MongoDB Search Strategy be implemented within
@vendure/core
'sDefaultSeachPlugin
.Describe alternatives you've considered
Being pointed to an already existing implementation of this, or a neat work around. Failing all of the above, I can just hackily change the switch case.
Additional context
N/A
The text was updated successfully, but these errors were encountered: