pub async fn get_single_instance_from_query(
    query: &str,
    realm_query: &RealmQueryProxy
) -> Result<Instance>
Expand description

Retrieves exactly one instance matching a given string query.

The string query can be a partial match on the following properties:

  • component moniker
  • component URL
  • component instance ID

If more than one instance matches the query, an error is thrown. If no instance matches the query, an error is thrown.