You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
@TypeORM splitting drivers into separate packages #344
I was thinking a lot how to solve all problems with new differing drivers like mongodb one.
Solution is to separate packages:
@typeorm/mysql
@typeorm/mariadb
@typeorm/sqlite
@typeorm/sql-server
@typeorm/oracle
@typeorm/websql
@typeorm/mongodb
and possible future drivers like:
@typeorm/redis
@typeorm/elasticsearch
@typeorm/cassandra
@typeorm/rethinkdb
@typeorm/neo4j
etc.
This requires lot of refactoring efforts and increases orm complexity, but that seems the only way to go further with different driver types.
We may also have general packages like @typeorm/core, @typeorm/sql, @typeorm/nosql however I'm not sure about them. Alternatively we can simply pack everything needed into their packages using different build scripts and tsconfigs.
Also another solution is to have @typeorm/typeorm and everything go from there, other packages just use declaration merging ability of TypeScript and add additional functionality, and users just use single @typeorm/typeorm namespace everywhere.
Need help - suggestions, proposals or coding help if possible.
Reacted by Justin van Elst, pashist, Angelos Pikoulas, jepotter1-archive, yf-hk, Ricki, harry han, Tadas Talaikis and Daniel Koch
As a personal preference, I would prefer different packages for each driver. It would help me as a developer keep things clear as to what driver is being used in the project. A single namespace would be nice... but I can see declaration merging becoming increasing complicated as time went on and more drivers were added.
Thoughts?
I have been following this project for about a month and find it very interesting. Great work so far!
you can use something a monorepo like lerna, I'm using it for my projects.
But it comes with restrictions:
-Publishing you cannot use an output folder for publishing, it publishes the project folder. you can overcome this by adding a .npmignore file to ignore unwanted files in the tarball
-Linking : on bootstrap lerna links dependents packages, and in case of peerDependenies, it May cause some problems.
perhaps we can start by refactoring so we have clear packages first, and then add a monorepo tool.
@madCoder24 as for me I see declaration merging is the best approach, it will help to easy migrations between different drivers, it will be more consistent, and documentation maybe easier to write, and overall users experience will be better I think. However its less flexible and requires good design of single namespace.
@Salimlou hi, publishing of multiple packages isn't a deal, I already have a build script which makes build and publishing specific way.
I can't argue with a better user experience as a single namespace is always nice. Would you have general packages at all if you went with declaration merging? I would imagine you wouldn't, correct? Were you thinking different interfaces for each driver?
Just curious on what thoughts you had for the multi-declaration design.
proposal: having a single use @typeorm/typeorm namespace (others do declaration merging)
Other packages will be used just to install the package to load some additional declaration merging. This requires perfect design of interfaces in @typeorm/typeorm namespace which can be then appended (using declaration merging) by other packages.
some of proposed changes:
decorators
ColumnType, ColumnOptions, IndexOptions and other options can be customized by drivers using declaration merging. Main package will contain only options all drivers have.
to be removed:
ObjectIdColumn instead PrimaryColumn can be used
PrimaryGeneratedColumn instead PrimaryColumn + new decorator, lets say ColumnGeneration(type: ColumnGenerationType) can be used where ColumnGenerationType is "auto"|"sequence"|"uid" depend of driver.
to be discussed:
is it okay to call Column decorator Column even for mongodb? Or shall we name it different way? Alternative can be to have both Column and Field decorators which will do same thing, e.g. field will be synonym decorator for column.
is it possible to implement CreateDateColumn, UpdateDateColumn, VersionColumn for all drivers including future drivers? It seems answer is "yes" for me, let me know if I am wrong.
some of decorators aren't supported everywhere, for example: DiscriminatorColumn, ClassEntityChild, ClosureEntity, SingleEntityChild, TableInheritance, JoinTable, JoinColumn, all relational decorators, transaction decorators, tree decorators, DiscriminatorValue, Index. Is it okay to have extra decorators in main package?
tell, what other problems you see with decorators?
connection, connection options and connection manager
Don't really see problems there. probably it can be same everywhere
drivers
DriverOptions can b customized by drivers using declaration merging. Thats awesome!
entity manager and repository
query, transaction, createQueryBuilder methods can be customized. In main package they should not present because are missing in some drivers (mongodb and others )
find options
base is there, other can be customized
query builder
that probably should be in main package, however not all drivers support it (mongodb and other non-relational), so Im not sure what to do with it yet.
cli commands
They can be different, not sure how to design them yet
Thats just quick overview of main public interfaces of typeorm. Please feel free to comment, and suggestions and complete this proposal.
import{getConnection}from"@typeorm/typeorm";// note: no need to importing something from other packages!constpostRepository=awaitgetConnection().getRepository(Post);postRepository.find();// compiler okay, type hinting is okaypostRepository.findUsingCursor();// compiler okay, type hinting is okay
If he uninstall @typeorm/mongodb package and install @typeorm/postgres for example it will have new declaration merging with postgres-specific functions, and postRepository.findUsingCursor(); will complain now.
Version with declaration merging will be very awfull in developing. How to add methods to existing class in TypeScript? There's no extending without extending, so you have to go back to require and patching prototype? There will be a lot of work to keep code and declarations in sync.
IMO the packages should be like class inheritance:
main package @typeorm/core contain all basic common stuffs (metadata, etc.) and basic logic
all specific packages depends on core package and extends BaseDriver with their XXXDriver
packages exports not modified stuffs from core
So user would do:
import{getConnection}from"@typeorm/mongodb";// note2: no need to have imports from /core, all is in dbspecific packageconstpostRepository=awaitgetConnection().getRepository(Post);// note: connection will be always MongoConnection type with no sync-schema methods, etc.postRepository.find();// compiler okay, type hinting is okaypostRepository.findUsingCursor();// compiler okay, type hinting is okay// note: MongoRepository would have specific methods
So the deps graph would look like this:
core
sql
mysql
oracle
etc.
mongoDB
So user could choose if he want to use @typeorm/sql to be able to switch between database engines or use @typeorm/mysql if he need some specific features like json types or sth.
And thanks to inheritance it should be easy to extend or overwrite methods and other stuffs.
not using "require", but yes, patching prototype. Yeah, its not that pleasant, but is that such a big problem? I think its not. Having multiple packages is already a pain in developing, patching prototype in some places doesn't deal too much there... As I already mentioned, declaration merging will help to easy migrations between different drivers, it will be more consistent, and documentation maybe easier to write, and overall users experience. Advantages bring by declaration merging worth having extra pain patching prototype I think. Maybe there are other more important disadvantages of this approach?
"declaration merging will help to easy migrations between different drivers"
Renaming import { x, y, z } from "@typeorm/mysql" to import { x, y, z } from "@typeorm/postgres" takes 15s in every editor or IDE. And you explicitly see that you getConnection from mysql not mongo, etc., no need to look in config what db is it.
By patching prototype can you use two drivers in one app? Like when you have existing sql database and want to migrate to mongo or have old postgres database add you add new functionality to the project using mysql db? If you use separate packages you still have typesafe with separate imports, declarations merging would then introduce type-hell and patching prototypes with mysql and postgres in the same app can result in total fail 😉
Having multiple packages is already a pain in developing
There is npm link, so instant developing of packages from separate repos is not a problem at all
.
I would like this kind of code instead of patching prototypes and declarations merging:
// @typeorm/mongo/repositoryimport{Repository}from"@typeorm/core";exportclassMongoRepository<T>extendsRepository<T>{findUsingCursor(): Cursor<Entity>{//}}// @typeorm/mongo/indexexportfunctiongetRepository(){returnnewMongoRepository();}// I know, getConnection(), etc. - it's just an sample of idea
It's like old good inheritance, just in one level up. Simple in understand, clean code, no dirty patching, pure amazing! 😄
So you have common API, switching is just a import rename, you have typesafe, better code, I don't see any advantage of patching prototypes and declarations.
I am watching the issues here for a little now, but I am far away from having an overview over the project but I am curios cannot we have a single package and lets webpack, rollup and other tools to make the tree-shaking?
@NoNameProvided we are discussing a bit different problem. Problem with different drivers having different methods, implementations and interfaces. We don't need webpack, rollup btw because we are on the backend where minification, tree-shaking and similar processes are pointless.
how about using a tslint perhaps to maintain coding style consistency?
we do use tslint, however its not completely configured. We simply need to configure it better.
What about redis... You know, elasticsearch is also quite different, especially its complicated query language and column definitions can be huge. Also mongodb was quite different from rdbms and I implemented it (right now its there you can checkout master and take a look on examples how mongodb is working). Im not redis expert and familiar only with basic its operations, however I think we can fix most of them?
For example:
@RedisModel()// temporary decorator namesclassPost{
@Key()id: string;
@Field()name: string;
@Field()description: string;}constpost=newPost();post.id="first";post.name="First post";post.description="About first post";awaitconnection.getRepository(Post).lpush(post);// will do: LPUSH post.id JSON.stringify(post)
No, I didn't know. I just skipped him😆
Thanks for the information. I will take a quick overview later.
I am assuming you are going to create two major packages (sql and nosql) like you have suggested on the first post.
So, Redis and/or Elasticsearch will fit into which category? If they fit in, at all...
Yes, sure, we can try to map LPUSH as an insert, LPOP as a delete and so on...
Nothing too complicated here, it is possible and kinda make sense...
My real question is: will you try to convert the "redis world" into a "sql" or "nosql" package?
That was my original question, I'm not sure if it was clear before.
If so, about the other commands like ZSCORE. Do you have plans to expose them on the specific redis package (@typeorm/redis) in the future?
About mongodb:
I saw it, it's looking good and seems promising 👍
About your example:
You will need to append the model name on the key name, something like this:
awaitconnection.getRepository(Post).lpush(post);// will do: LPUSH "Post:"+post.id JSON.stringify(post)
Otherwise it will be overwritten by other models/entities (or whatever you are going to call it), but I understood what you mean...
I am assuming you are going to create two major packages (sql and nosql) like you have suggested on the first post.
no, as many packages as many databases, e.g. @typeorm/mysql, @typeorm/postgres, @typeorm/mssql, @typeorm/mongodb, @typeorm/redis etc
each package will only have what it can do, e.g. there will not be a QueryBuilder and transactions in redis, but will be in mysql/postgres/etc. Or Cursor will be only in mongodb package. But there are also common things: connection, repository, entity managers etc. But their methods may differ depend on driver type.
I understand that separating existing codebase to separate packages with separate interfaces and the whole inheritance chain is a complex thing but It's only one time job. Then you can take profit from this feature not only as a TypeORM user but also as TypeORM developer (param/options intellisense in db-specific drivers, etc.). Having one interface and decorators for multiple db means that there's a lot of any or false-positive options which is bad in TypeScript world.
I'm not sure whether you understand my vision of packages and inheritance as you think about big "value/complexity it brings". Maybe should I create PR for this when 0.1.0 will have stable API or be released?
It brings relatively small value for a complexity it brings. Its not simply one time job. Its highly increases maintenance costs because working with such huge codebase with hundred more files and duplicate (or long) names will be harder. Including fact that we wont bring extra databases in a near future, including fact that bringing each new database will still bring lot of problems and costs with multiple packages as well and including fact that right now everything is working very well already I decided not to do this task. And this is a right decision.
It looks like your assumption about separate packages are different than what I was thinking about. It's not only about e.g. getRepository() which return normal Repository for rdbms and MongoRepository for mongo. It also about dev experience when he set in decorator not supported option or column type, etc. - you have to do manual checking in driver to print error on console on runtime with the info (or now it fails silently?). With typesafe you don't have to do it because you can assume that lib-user is doing it correctly. So it can reduce the maintenance costs as well as improve developers experience.
It brings relatively small value for a complexity it brings.
If I got $1 everytime JS-dev tell this about TypeScript... 😆 But you use TS here so you see that sometimes it might looks like complicated and unnecessary work but it give you much more profit later 😉
If I got $1 everytime JS-dev tell this about TypeScript...
yeah thats right
it might looks like complicated and unnecessary work but it give you much more profit later
this decision cannot be compared with "use typescript over javascript". Everything has pros and cons and in this case I measured and there are more cons of this approach at the moment.
he set in decorator not supported option or column type
again as I told value of this is too low. Yeah he may have extra properties for mongodb column decorator which are not available. And so? Is it a problem? No. Its completely not. For people its more important to have lets say migrations generator then having such almost useless in this case typesafety. Right? And it means I better spend my resources on implementing migrations generator then do this thing and then keep maintaining this sht. Again this is a right decision at this moment.
Right, it's not a critical feature and now there are more important things to do as you said, so it might be not a right time. I just thought that you completely abandon this idea ("I decided not to do this task. And this is a right decision.") not just postpone and put it in "nice-to-have" backlog 😜
Hey all, just ran into a big bundle and was investigating, saw that the various query runners are taking up a lot of space. This is a long thread, is there a up to date TL;DR? Is this implemented or planned?
no, its not planned. If you talk about bundle size then split into bundles may save only 10% no more then that. Why do you care about bundle size? Where do you use typeorm?
Elasticsearch with TypeORM would be amazing :D
After it might be lot of work, cause it might introduce lot of new decorator for creating the indexes and so on...
We have started development in NestJS and we were excited to use TypeORM but unfortunately, we are using ElasticSearch as a database.
if TypeORM supports ElasticSearch then it sounds really awesome, though it looks trickier to implement but so far one of most complex MongoDB is already covered, So probably not as trickier as I think. @pleerock Is it fit in near future plan or roadmap?
Activity
pleerock commentedon Mar 14, 2017
@19majkel94 maybe its time to appear in list of typeorm contributors 😉
madCoder24 commentedon Mar 14, 2017
As a personal preference, I would prefer different packages for each driver. It would help me as a developer keep things clear as to what driver is being used in the project. A single namespace would be nice... but I can see declaration merging becoming increasing complicated as time went on and more drivers were added.
Thoughts?
I have been following this project for about a month and find it very interesting. Great work so far!
Salimlou commentedon Mar 14, 2017
Hi @pleerock
you can use something a monorepo like lerna, I'm using it for my projects.
But it comes with restrictions:
-Publishing you cannot use an output folder for publishing, it publishes the project folder. you can overcome this by adding a .npmignore file to ignore unwanted files in the tarball
-Linking : on bootstrap lerna links dependents packages, and in case of peerDependenies, it May cause some problems.
perhaps we can start by refactoring so we have clear packages first, and then add a monorepo tool.
pleerock commentedon Mar 14, 2017
thanks guys for the feedback!
@madCoder24 as for me I see declaration merging is the best approach, it will help to easy migrations between different drivers, it will be more consistent, and documentation maybe easier to write, and overall users experience will be better I think. However its less flexible and requires good design of single namespace.
@Salimlou hi, publishing of multiple packages isn't a deal, I already have a build script which makes build and publishing specific way.
madCoder24 commentedon Mar 14, 2017
I can't argue with a better user experience as a single namespace is always nice. Would you have general packages at all if you went with declaration merging? I would imagine you wouldn't, correct? Were you thinking different interfaces for each driver?
Just curious on what thoughts you had for the multi-declaration design.
pleerock commentedon Mar 14, 2017
proposal: having a single use
@typeorm/typeormnamespace (others do declaration merging)Other packages will be used just to install the package to load some additional declaration merging. This requires perfect design of interfaces in
@typeorm/typeormnamespace which can be then appended (using declaration merging) by other packages.some of proposed changes:
decorators
ColumnType,ColumnOptions,IndexOptionsand other options can be customized by drivers using declaration merging. Main package will contain only options all drivers have.ObjectIdColumninsteadPrimaryColumncan be usedPrimaryGeneratedColumninsteadPrimaryColumn+ new decorator, lets sayColumnGeneration(type: ColumnGenerationType)can be used whereColumnGenerationTypeis"auto"|"sequence"|"uid"depend of driver.ColumndecoratorColumneven for mongodb? Or shall we name it different way? Alternative can be to have bothColumnandFielddecorators which will do same thing, e.g. field will be synonym decorator for column.CreateDateColumn,UpdateDateColumn,VersionColumnfor all drivers including future drivers? It seems answer is "yes" for me, let me know if I am wrong.DiscriminatorColumn,ClassEntityChild,ClosureEntity,SingleEntityChild,TableInheritance,JoinTable,JoinColumn, all relational decorators, transaction decorators, tree decorators,DiscriminatorValue,Index. Is it okay to have extra decorators in main package?connection, connection options and connection manager
drivers
DriverOptionscan b customized by drivers using declaration merging. Thats awesome!entity manager and repository
query,transaction,createQueryBuildermethods can be customized. In main package they should not present because are missing in some drivers (mongodb and others )find options
query builder
cli commands
Thats just quick overview of main public interfaces of typeorm. Please feel free to comment, and suggestions and complete this proposal.
pleerock commentedon Mar 14, 2017
Lets clarify something. By declaration merging I mean, for example,
We have a
Repositoryclass in@typeorm/typeormNow user install
@typeorm/mongodbwhich has such declaration merging code:Now when user uses orm, he can do:
If he uninstall
@typeorm/mongodbpackage and install@typeorm/postgresfor example it will have new declaration merging with postgres-specific functions, andpostRepository.findUsingCursor();will complain now.MichalLytek commentedon Mar 14, 2017
Version with declaration merging will be very awfull in developing. How to add methods to existing class in TypeScript? There's no extending without extending, so you have to go back to require and patching prototype? There will be a lot of work to keep code and declarations in sync.
IMO the packages should be like class inheritance:
@typeorm/corecontain all basic common stuffs (metadata, etc.) and basic logicBaseDriverwith their XXXDriverSo user would do:
So the deps graph would look like this:
So user could choose if he want to use
@typeorm/sqlto be able to switch between database engines or use@typeorm/mysqlif he need some specific features like json types or sth.And thanks to inheritance it should be easy to extend or overwrite methods and other stuffs.
pleerock commentedon Mar 14, 2017
not using "require", but yes, patching prototype. Yeah, its not that pleasant, but is that such a big problem? I think its not. Having multiple packages is already a pain in developing, patching prototype in some places doesn't deal too much there... As I already mentioned, declaration merging will help to easy migrations between different drivers, it will be more consistent, and documentation maybe easier to write, and overall users experience. Advantages bring by declaration merging worth having extra pain patching prototype I think. Maybe there are other more important disadvantages of this approach?
MichalLytek commentedon Mar 14, 2017
Renaming
import { x, y, z } from "@typeorm/mysql"toimport { x, y, z } from "@typeorm/postgres"takes 15s in every editor or IDE. And you explicitly see that you getConnection from mysql not mongo, etc., no need to look in config what db is it.By patching prototype can you use two drivers in one app? Like when you have existing sql database and want to migrate to mongo or have old postgres database add you add new functionality to the project using mysql db? If you use separate packages you still have typesafe with separate imports, declarations merging would then introduce type-hell and patching prototypes with mysql and postgres in the same app can result in total fail 😉
MichalLytek commentedon Mar 14, 2017
There is
npm link, so instant developing of packages from separate repos is not a problem at all.
I would like this kind of code instead of patching prototypes and declarations merging:
It's like old good inheritance, just in one level up. Simple in understand, clean code, no dirty patching, pure amazing! 😄
So you have common API, switching is just a import rename, you have typesafe, better code, I don't see any advantage of patching prototypes and declarations.
NoNameProvided commentedon Mar 14, 2017
I am watching the issues here for a little now, but I am far away from having an overview over the project but I am curios cannot we have a single package and lets webpack, rollup and other tools to make the tree-shaking?
pleerock commentedon Mar 14, 2017
@NoNameProvided we are discussing a bit different problem. Problem with different drivers having different methods, implementations and interfaces. We don't need webpack, rollup btw because we are on the backend where minification, tree-shaking and similar processes are pointless.
25 remaining items
pleerock commentedon Mar 25, 2017
we do use tslint, however its not completely configured. We simply need to configure it better.
What about redis... You know, elasticsearch is also quite different, especially its complicated query language and column definitions can be huge. Also mongodb was quite different from rdbms and I implemented it (right now its there you can checkout master and take a look on examples how mongodb is working). Im not redis expert and familiar only with basic its operations, however I think we can fix most of them?
For example:
navossoc commentedon Mar 25, 2017
No, I didn't know. I just skipped him😆
Thanks for the information. I will take a quick overview later.
I am assuming you are going to create two major packages (sql and nosql) like you have suggested on the first post.
So, Redis and/or Elasticsearch will fit into which category? If they fit in, at all...
Yes, sure, we can try to map
LPUSHas an insert,LPOPas a delete and so on...Nothing too complicated here, it is possible and kinda make sense...
My real question is: will you try to convert the "redis world" into a "sql" or "nosql" package?
That was my original question, I'm not sure if it was clear before.
If so, about the other commands like
ZSCORE. Do you have plans to expose them on the specific redis package (@typeorm/redis) in the future?About mongodb:
I saw it, it's looking good and seems promising 👍
About your example:
You will need to append the model name on the key name, something like this:
Otherwise it will be overwritten by other models/entities (or whatever you are going to call it), but I understood what you mean...
I'm going to sleep now, cya 😉
pleerock commentedon Mar 25, 2017
no, as many packages as many databases, e.g.
@typeorm/mysql,@typeorm/postgres,@typeorm/mssql,@typeorm/mongodb,@typeorm/redisetceach package will only have what it can do, e.g. there will not be a
QueryBuilderandtransactionsin redis, but will be in mysql/postgres/etc. OrCursorwill be only in mongodb package. But there are also common things: connection, repository, entity managers etc. But their methods may differ depend on driver type.pleerock commentedon Jun 17, 2017
I decided to postpone this issue because of value/complexity it brings. Mongodb is part of typeorm main package at the moment.
MichalLytek commentedon Jun 17, 2017
I understand that separating existing codebase to separate packages with separate interfaces and the whole inheritance chain is a complex thing but It's only one time job. Then you can take profit from this feature not only as a TypeORM user but also as TypeORM developer (param/options intellisense in db-specific drivers, etc.). Having one interface and decorators for multiple db means that there's a lot of any or false-positive options which is bad in TypeScript world.
I'm not sure whether you understand my vision of packages and inheritance as you think about big "value/complexity it brings". Maybe should I create PR for this when 0.1.0 will have stable API or be released?
pleerock commentedon Jun 18, 2017
It brings relatively small value for a complexity it brings. Its not simply one time job. Its highly increases maintenance costs because working with such huge codebase with hundred more files and duplicate (or long) names will be harder. Including fact that we wont bring extra databases in a near future, including fact that bringing each new database will still bring lot of problems and costs with multiple packages as well and including fact that right now everything is working very well already I decided not to do this task. And this is a right decision.
MichalLytek commentedon Jun 18, 2017
It looks like your assumption about separate packages are different than what I was thinking about. It's not only about e.g.
getRepository()which return normalRepositoryfor rdbms andMongoRepositoryfor mongo. It also about dev experience when he set in decorator not supported option or column type, etc. - you have to do manual checking in driver to print error on console on runtime with the info (or now it fails silently?). With typesafe you don't have to do it because you can assume that lib-user is doing it correctly. So it can reduce the maintenance costs as well as improve developers experience.If I got $1 everytime JS-dev tell this about TypeScript... 😆 But you use TS here so you see that sometimes it might looks like complicated and unnecessary work but it give you much more profit later 😉
pleerock commentedon Jun 18, 2017
yeah thats right
this decision cannot be compared with "use typescript over javascript". Everything has pros and cons and in this case I measured and there are more cons of this approach at the moment.
again as I told value of this is too low. Yeah he may have extra properties for mongodb column decorator which are not available. And so? Is it a problem? No. Its completely not. For people its more important to have lets say migrations generator then having such almost useless in this case typesafety. Right? And it means I better spend my resources on implementing migrations generator then do this thing and then keep maintaining this sht. Again this is a right decision at this moment.
MichalLytek commentedon Jun 18, 2017
Right, it's not a critical feature and now there are more important things to do as you said, so it might be not a right time. I just thought that you completely abandon this idea ("I decided not to do this task. And this is a right decision.") not just postpone and put it in "nice-to-have" backlog 😜
natew commentedon Apr 15, 2018
Hey all, just ran into a big bundle and was investigating, saw that the various query runners are taking up a lot of space. This is a long thread, is there a up to date TL;DR? Is this implemented or planned?
pleerock commentedon Apr 16, 2018
no, its not planned. If you talk about bundle size then split into bundles may save only 10% no more then that. Why do you care about bundle size? Where do you use typeorm?
apiel commentedon Apr 10, 2019
Elasticsearch with TypeORM would be amazing :D
After it might be lot of work, cause it might introduce lot of new decorator for creating the indexes and so on...
rishikapadia1 commentedon Aug 1, 2019
We have started development in NestJS and we were excited to use TypeORM but unfortunately, we are using ElasticSearch as a database.
if TypeORM supports ElasticSearch then it sounds really awesome, though it looks trickier to implement but so far one of most complex MongoDB is already covered, So probably not as trickier as I think.
@pleerock Is it fit in near future plan or roadmap?
obedm503 commentedon Aug 1, 2019
an ElasticSearch driver would be an awesome community contribution!