We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
InjectMikroORMs
1 parent dd3f9e3 commit 345961bCopy full SHA for 345961b
src/mikro-orm.common.ts
@@ -20,6 +20,12 @@ export const getMikroORMToken = (name: string) => `${name}_MikroORM`;
20
*/
21
export const InjectMikroORM = (name: string) => Inject(getMikroORMToken(name));
22
23
+/**
24
+ * Gets the injection token for the relevant MikroORMs provider.
25
+ * @returns The MikroORMs provider injection token for the supplied context name.
26
+ */
27
+export const InjectMikroORMs = () => Inject('MikroORMs');
28
+
29
/**
30
* Gets the injection token based on context name for the relevant EntityManager provider.
31
* @param name The context name of the database connection.
0 commit comments