Skip to main content

Get a record

Get a record by ID

db.schema.table.get Get a record based on the ID.

API get

Example Request

{
"method": "smartPanda.mdh.brand.get",
"params": 1
}

Single-column primary key transfers value, multi-column primary key transfers object.

Example Response

{
"id": 1,
"name": "Luwak"
}
info

If empty, returns an empty object {}, instead of null.

Note: supported in >=3.0.0