feat: Application types generation from project GQL schema's (#8995)

This commit is contained in:
Adrien de Peretti
2024-09-06 15:15:32 +05:30
committed by GitHub
parent ac30a989f4
commit 2c5e72d141
92 changed files with 5129 additions and 443 deletions
+4
View File
@@ -13,6 +13,7 @@ import {
container,
expressLoader,
featureFlagsLoader,
GraphQLSchema,
JobLoader,
LinkLoader,
logger,
@@ -133,6 +134,7 @@ export default async ({
container: MedusaContainer
app: Express
shutdown: () => Promise<void>
gqlSchema?: GraphQLSchema
}> => {
const container = await initializeContainer(rootDirectory)
const configModule = container.resolve(
@@ -149,6 +151,7 @@ export default async ({
onApplicationStart,
onApplicationShutdown,
onApplicationPrepareShutdown,
gqlSchema,
} = await new MedusaAppLoader().load()
const workflowsSourcePaths = plugins.map((p) => join(p.resolve, "workflows"))
@@ -184,5 +187,6 @@ export default async ({
container,
app: expressApp,
shutdown,
gqlSchema,
}
}