---
title: recordType
framework: CloudKit JS
role: symbol
role_heading: Instance Property
platforms: [cloudkit js 1.0+]
path: cloudkitjs/cloudkit.record/recordtype
---

# recordType

The name of the record type. This key is required if the record doesn’t exist.

## Declaration

```data
attribute String recordType;
```
