Replies: 1 comment 1 reply
-
import { ref } from '@mikro-orm/core';
userProfile.background = ref(item) as LoadedReference<your entity type>; I guess it makes sense to return the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
I am currently trying to relate that property to an entity but I get the typescript error saying that the $ and get properties are missing. According to the documentation this is how it should be done, but I get this typescript error.
Stack trace
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No type error as according to the documentation this is the way it should be done.
Additional context
No.
Versions
Beta Was this translation helpful? Give feedback.
All reactions