getByUID()
Description
Get data from the database table by UID
Request
Parameters
uid
string
UID of the object to get
options
Object
Options Object Parameters
includes
Array of string
An array of columns with one-to-one
or one-to-many
references that you would like to include in your response.
For one-to-one
reference the value will be returned as an object containing the includes in place of the reference value.
For one-to-many
reference the value will be returned as an array of objects containing the includes in place of the reference value.
Examples
Get by UID
Get by UID with includes
Response
Parameters
data
Object
Object containing all database item values
meta
Object
Metadata Parameters
total
number
Total number of items in with the given UID Always equal to 1
page
number
Current page number Always equal to 1
limit
number
Current limit per page Always equal to 1
includesCount
number
Number of additional requests for the includes operations
Example
This is an example response to the Get by UID with includes request example above.
Last updated