Skip to main content

get

Function get 

Source
pub async fn get<S: StorageAdapter>(
    storage: &S,
    class_name: &str,
    object_id: &str,
    scope: &AclScope,
) -> Result<ParseMap, ParseError>
Expand description

Fetch one object by id.

A row the caller cannot read is OBJECT_NOT_FOUND, the same as one that does not exist. Upstream conflates them deliberately: distinguishing them would tell an unauthorized caller that the object exists.