brandon
07/12/2018, 8:30 PMtype Owner {
id: ID! @unique
dogs: [Dog!]!
}
type Dog {
id: ID! @unique
name: String!
owner: Owner
}
But whenever I try to do the query of
query {
dog (where: {id: "1"}) {
owner
}
}
it wants me to have a where input for the owner. Why is this the case? I know dogs can only have one owner...
I just want to receive the information of that one owner.KyleG
07/12/2018, 9:30 PMtype Owner {
id: ID! @unique
dogs: [Dog!]! @relation(name: "UserToDog")
}
type Dog {
id: ID! @unique
name: String!
owner: Owner @relation(name: "UserToDog")
}
KyleG
07/12/2018, 9:30 PMbrandon
07/12/2018, 9:32 PMbrandon
07/12/2018, 9:33 PMKyleG
07/12/2018, 9:34 PMbrandon
07/12/2018, 9:35 PMKyleG
07/12/2018, 9:36 PMbrandon
07/12/2018, 9:38 PMbrandon
07/12/2018, 9:38 PM