Skip to main content

Device

Device used by a viewer.

type Device {
code: String
createdAt: DateTime!
deviceId: String!
id: String!
model: String
name: String
oAuthState: String
type: DeviceType!
updatedAt: DateTime!
viewer: Viewer
viewerId: String
watchHistory: [WatchHistory]!
}

Fields

Device.code ● String scalar references

Activation code.

Only present during device activation.

Device.createdAt ● DateTime! non-null scalar references

Device.deviceId ● String! non-null scalar references

Globally unique device identifier.

Device.id ● String! non-null scalar references

Device.model ● String scalar references

Device model name.

Device.name ● String scalar references

Device friendly name.

Device.oAuthState ● String scalar references

State value for an OAuth2-based authorization flow.

Only present during Viewer OAuth2 authorization process for the device.

Device.type ● DeviceType! non-null enum references

Device.updatedAt ● DateTime! non-null scalar references

Device.viewer ● Viewer object references

Device.viewerId ● String scalar references

Device.watchHistory ● [WatchHistory]! non-null object references

Returned By

createDevice mutation ● deleteDevice mutation ● device query ● devices query ● signOut mutation ● updateDevice mutation

Member Of

Viewer object ● WatchHistory object