Relational queries: many-to-many

How to exclude xId fields from findFirst | findMany method or i just need to use "Magical sql operator" :D.

And can I get rid of the usersToStudios field?

{
    name: string;
    id: number;
    createdAt: Date;
    description: string | null;
    ownerId: number;
    user: {
        name: string;
        email: string;
        password: string;
        id: number;
        createdAt: Date;
    }[];
}
image.png
Was this page helpful?