getItem
Find and get objects, this is for single results
getItem({key: value, ...} , (data)=> {}, (error)=> {})
getItem({key: value, ...} , (data)=> {}, (error)=> {})
How to use:
Arguments:
parameter
required
types
search object
yes
object
success callback
yes
function
failure callback
yes
function
Example:
Tips:
if many items exists and matches with object you provide, getItem only return the last matched one.
to get list of matched items use getItems.
if pleex don't find anything its return undefined
Last updated
Was this helpful?