diff --git a/src/Resource.ts b/src/Resource.ts index 3e6c92e..94470e1 100644 --- a/src/Resource.ts +++ b/src/Resource.ts @@ -85,6 +85,7 @@ export class Resource extends BaseResource { [idProperty.path()]: convertParam(idProperty, this.model.fields, id), }, }); + if (!result) return null; return new BaseRecord(this.prepareReturnValues(result), this); }