> For the complete documentation index, see [llms.txt](https://docs.medable.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.medable.com/cortex-api/decorators/static/object.md).

# Object

Adding an object decorator

```javascript
@object({
  name: 'My Object',
  weight: 1
})
class MyObject {

  [ ... ]

}
```

## @object(options)

*Arguments*

* `options` { Object } Options object
  * `name` { String } The Cortex objectName (eg. account, c\_foo)
  * `weight` { Number = *0* } The weight&#x20;

```javascript
@object({
  name: 'My Object',
  weight: 1
})
class MyObject {

  [ ... ]

}
```
