python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
How to retrieve only the relation ID, not the whole entity in MikroORM?
I have the following basic test entities:
@Entity()
class Author {
@PrimaryKey()
public id!: number;
@Property()
public name!: string;
}
@Entity()
class Book {
@PrimaryKey()
...
Dexx
Votes: 0
Answers: 1
MikroORM: How to use generic findOne with BaseEntity?
We are using MikroORM and would like to create a BaseRepo with some basic methods in our NestJS project. Doing so we ran into a problem with the findOne method. Here is our code:
BaseRepo.ts
export cl...
dyedwiper
Votes: 0
Answers: 1
NestJS OpenAPI TS types missing entities
I've got a NestJS app with Mikro-ORM and I'm generating OpenAPI TS types using openapi-typescript for the front-end. I'm using the @ApiProperty decorator to add types to the entity relations, but only...
SimpleJ
Votes: 0
Answers: 0
Error: Cannot find module 'src/entities/Post'
so i am creating a graphQL server using type-graph and mikro-orm
everything was fine till i got this error that says => Error: Cannot find module 'src/entities/Post' and that module exists as you c...
John
Votes: 0
Answers: 1