add full defaultMedusaSchema

This commit is contained in:
Pedro Guzman committed 2025-06-13 12:23:57 +02:00
1 parent 0409ef4886
commit 0fd0a0892b
2 files changed
+6 -1

No files matched your search

@@ -1253,7 +1253,10 @@ export function buildSchemaObjectRepresentation(schema: string): {
} as IndexTypes.SchemaObjectRepresentation
Object.entries(entitiesMap).forEach(([entityName, entityMapValue]) => {
if (!entityMapValue.astNode) {
if (
!entityMapValue.astNode ||
entityMapValue.astNode.kind === GraphQLUtils.Kind.SCALAR_TYPE_DEFINITION
) {
return
}