isemaj
10/29/2019, 5:15 AMtype Board {
id: ID! @id
list: [List!]! @relation(link: INLINE)
}
type List {
id: ID! @id
board: [Board!]!
}
querying the Board the list field will contain only with `id`s but how can I resolve it with the actual document which is the `List`s not the `id`s.
my query looks like
prisma.boards();
I'm using mongodb.Harshit
10/29/2019, 5:41 PMprisma.boards().$fragment( `
fragment EnsureBoard on List {
board {
id
otherFields
}
}`)isemaj
10/29/2019, 10:43 PMboard: [Board!]! field in the type List to create relation? Because what I'm just trying to do is to store List inside the Board via list field in.