remult 0.23.0-exp.26 → 0.23.0-exp.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -524,7 +524,11 @@ export class RepositoryImplementation {
|
|
|
524
524
|
if (options.field) {
|
|
525
525
|
if (rel.type === 'toOne') {
|
|
526
526
|
requireField(options.field, this.metadata);
|
|
527
|
-
|
|
527
|
+
const val = row[options.field];
|
|
528
|
+
if (val === null)
|
|
529
|
+
returnNull = true;
|
|
530
|
+
else
|
|
531
|
+
where.push(otherRepo.metadata.idMetadata.getIdFilter(val));
|
|
528
532
|
}
|
|
529
533
|
else {
|
|
530
534
|
requireField(options.field, otherRepo.metadata);
|
|
@@ -55,3 +55,7 @@ remult.apiClient.url='localhost:3007/api
|
|
|
55
55
|
//p1 - with remult promise for remultexpress
|
|
56
56
|
//p1 - 'update tasks set where id = $1
|
|
57
57
|
//p1 - live query refresh of view on table update
|
|
58
|
+
//p1 - Operator '>' cannot be applied to types 'Number' and 'number'.ts(2365) - change fields to <entityType,number> (now it's Number)
|
|
59
|
+
//p1 - Field(()=>String) - doesn't play nice with strict mode - it prevents people from extending basic types
|
|
60
|
+
//p1 - filterToRaw should get a dbnames of - and we should create a dbnames of that supports an alias
|
|
61
|
+
//p1 - consider the breaking signature change of saving on field options - the field becomes the 3rd parameter.
|
package/package.json
CHANGED
|
@@ -877,7 +877,11 @@ var RepositoryImplementation = /** @class */ (function () {
|
|
|
877
877
|
if (options.field) {
|
|
878
878
|
if (rel.type === 'toOne') {
|
|
879
879
|
requireField(options.field, this.metadata);
|
|
880
|
-
|
|
880
|
+
var val = row[options.field];
|
|
881
|
+
if (val === null)
|
|
882
|
+
returnNull = true;
|
|
883
|
+
else
|
|
884
|
+
where.push(otherRepo.metadata.idMetadata.getIdFilter(val));
|
|
881
885
|
}
|
|
882
886
|
else {
|
|
883
887
|
requireField(options.field, otherRepo.metadata);
|
package/src/remult3/remult3.js
CHANGED
|
@@ -56,3 +56,7 @@ remult.apiClient.url='localhost:3007/api
|
|
|
56
56
|
//p1 - with remult promise for remultexpress
|
|
57
57
|
//p1 - 'update tasks set where id = $1
|
|
58
58
|
//p1 - live query refresh of view on table update
|
|
59
|
+
//p1 - Operator '>' cannot be applied to types 'Number' and 'number'.ts(2365) - change fields to <entityType,number> (now it's Number)
|
|
60
|
+
//p1 - Field(()=>String) - doesn't play nice with strict mode - it prevents people from extending basic types
|
|
61
|
+
//p1 - filterToRaw should get a dbnames of - and we should create a dbnames of that supports an alias
|
|
62
|
+
//p1 - consider the breaking signature change of saving on field options - the field becomes the 3rd parameter.
|