find<T> method
Finds an entity of the specified type by primary key.
Implementation
@override
Future<T?> find<T>(dynamic key, [Type? type]) async {
_verifyNoCompositeKey(key);
var connection = await _connect();
var entitySupport = registry.lookup(type ?? T);
var documentType = entitySupport.name;
var document = await connection.get(documentType, key);
return document != null ? entitySupport.deserialize(document) : null;
}