File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -260,26 +260,26 @@ export function generateMappingForType(type: TypeData): string {
260260 }
261261
262262 const properties = Object . entries ( mappingProperties )
263- . map ( ( [ key , value ] ) => ` ${ key } : ${ value } ` )
263+ . map ( ( [ key , value ] ) => ` ${ key } : ${ value } ` )
264264 . join ( ',\n' ) ;
265265
266266 const relations = Object . entries ( mappingRelations )
267- . map ( ( [ key , value ] ) => ` ${ key } : ${ value } ` )
267+ . map ( ( [ key , value ] ) => ` ${ key } : ${ value } ` )
268268 . join ( ',\n' ) ;
269269
270- return ` ${ className } : {
271- typeIds: [Id.Id('${ type . id } ')],
272- properties: {
270+ return `${ className } : {
271+ typeIds: [Id.Id('${ type . id } ')],
272+ properties: {
273273${ properties }
274- },
274+ },
275275${
276276 relations
277- ? ` relations: {
277+ ? ` relations: {
278278${ relations }
279- },`
279+ },`
280280 : ''
281281}
282- }`;
282+ }` ;
283283}
284284
285285// Function to get all types with their individual schema and mapping
You can’t perform that action at this time.
0 commit comments