see user-owned device with apollo-server-graphql,
I want to see which user belongs to the device.
I would like to find the following query by username field.
query {
user(username: "fatih") {
username
password
userDevices {
deviceName
username
}
}
}
Hi it exist in one file, i think i found it ...
type User{
userId: ID
username: String!
password: String # password alanı veritabanından çekilmemesi için kapatıldı
phone: String
createdAt: String
# userDevices(username: String!): Device
userDevices: [Device]
}