getDeviceUserMapping constant

String const getDeviceUserMapping

Get device-user mapping by ID

Implementation

static const String getDeviceUserMapping = '''
  query GetDeviceUserMapping(\$id: ID!) {
    getDeviceUserMapping(id: \$id) {
      id
      mappingId
      deviceId
      userId
      role
      invitedBy
      invitedAt
      createdAt
      updatedAt
      owner
      device {
        id
        deviceId
        deviceName
        status
      }
      user {
        id
        userId
        email
        fullName
      }
    }
  }
''';