@mikro-orm/coreFunctionsVersion: 5.9serialize Callableserialize<T, P>(entity, options): EntityDTO<Loaded<T, P>>serialize<T, P>(entities, options): EntityDTO<Loaded<T, P>>[]Converts entity instance to POJO, converting the Collections to arrays and unwrapping the Reference wrapper, while respecting the serialization options.Type parametersT: objectP: string = neverParametersentity: Toptionaloptions: SerializeOptions<T, P>Returns EntityDTO<Loaded<T, P>>
Converts entity instance to POJO, converting the
Collection
s to arrays and unwrapping theReference
wrapper, while respecting the serialization options.