# create

The create() method for the SurrealDB Mojo SDK creates a record in the database.

Creates a record in the database. This is a convenience wrapper that runs `CREATE <thing> CONTENT <content_json>;`.

```python title="Method Syntax"
client.create(thing, content_json, session, txn)
```

## Arguments

<table>
    <thead>
        <tr>
            <th colspan="2" scope="col">Argument</th>
            <th colspan="2" scope="col">Description</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td colspan="2" scope="row" data-label="Argument"><code>thing</code></td>
            <td colspan="2" scope="row" data-label="Description">The table or specific record to create.</td>
        </tr>
        <tr>
            <td colspan="2" scope="row" data-label="Argument"><code>content_json</code></td>
            <td colspan="2" scope="row" data-label="Description">The record content as a JSON string.</td>
        </tr>
        <tr>
            <td colspan="2" scope="row" data-label="Argument"><code>session</code></td>
            <td colspan="2" scope="row" data-label="Description">An optional session id.</td>
        </tr>
        <tr>
            <td colspan="2" scope="row" data-label="Argument"><code>txn</code></td>
            <td colspan="2" scope="row" data-label="Description">An optional transaction id.</td>
        </tr>
    </tbody>
</table>

## Example usage

```python
var resp = client.create("person", '{ "name": "Chiru", "age": 30 }')
```

## Translated query

```surql
CREATE $thing CONTENT $content_json;
```
