or is there something weird with the promise?
# prisma-whats-new
s
or is there something weird with the promise?
moves is null depending on the client query 🙂
s
i just looked up my db, in the move table there is no reference to the mrx
type MrX { id: ID! @unique name: String! gameSession: GameSession! moves: [Move!]! } type PoliceOfficer { id: ID! @unique name: String! gameSession: GameSession! moves: [Move!]! } type Move { id: ID! @unique mrX: MrX policeOffice: PoliceOfficer isVisible: Boolean! station: Station! vehicle: Vehicle! }
this is the code, i thought that would add a fk to the move table
weird thing is, that it works, when i query the db…
n
relations have their own tables
did you read the post above? it's about your info object 🙂
s
ah ok
jeah i read it, but apperently not good enough 😉
ok, now i got it, thanks 😉
n
Cheers!