Skip to main content

# DeviceToken

Represents one device used for push notifications.

    type DeviceToken {
      id: ID!
      description: String
      platform: String
      token: String!
      createdAt: DateTime!
      updatedAt: DateTime!
    }

### Fields​

#### `DeviceToken.id` ● `ID!` non-null scalar​

The id of the device token

#### `DeviceToken.description` ● `String` scalar​

Description of the device

#### `DeviceToken.platform` ● `String` scalar​

At the moment either 'ios' or 'android'

#### `DeviceToken.token` ● `String!` non-null scalar​

The device token to send the push notifications to

#### `DeviceToken.createdAt` ● `DateTime!` non-null scalar​

Creational timestamp

#### `DeviceToken.updatedAt` ● `DateTime!` non-null scalar​

Last update of this device token

### Returned By​

`registerDevice` mutation

### Member Of​

`User` object