@stonyx/orm 0.3.2-alpha.79 → 0.3.2-alpha.80
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.
- package/dist/orm-request.js +6 -2
- package/package.json +1 -1
- package/src/orm-request.ts +6 -2
package/dist/orm-request.js
CHANGED
|
@@ -451,8 +451,12 @@ function buildResponse(data, includeParam, recordOrRecords, options = {}) {
|
|
|
451
451
|
// for the primary document -- and that is what the `linkage` option
|
|
452
452
|
// below decides. Before it, `GET /animals/1?include=owner,owner.pets`
|
|
453
453
|
// filtered the primary document's `owner.data` to `null` and then
|
|
454
|
-
// handed back
|
|
455
|
-
// `{"type":"owner","id":"angela"}
|
|
454
|
+
// handed back eight PERMITTED animals in `included` each naming
|
|
455
|
+
// `{"type":"owner","id":"angela"}` -- angela's whole `pets` set,
|
|
456
|
+
// `[1, 3, 7, 10, 11, 15, 17, 20]`. `included` itself is NINE
|
|
457
|
+
// resources there: those eight animals plus the hidden owner, whose
|
|
458
|
+
// membership is #233's and not an animal. Neither #233 nor #234
|
|
459
|
+
// closes that.
|
|
456
460
|
//
|
|
457
461
|
// THE FILTER IS THE CALLER'S, PASSED IN, NOT BUILT HERE. Both call sites
|
|
458
462
|
// already hold one for the primary document, and sharing it is what keeps
|
package/package.json
CHANGED
package/src/orm-request.ts
CHANGED
|
@@ -496,8 +496,12 @@ function buildResponse(
|
|
|
496
496
|
// for the primary document -- and that is what the `linkage` option
|
|
497
497
|
// below decides. Before it, `GET /animals/1?include=owner,owner.pets`
|
|
498
498
|
// filtered the primary document's `owner.data` to `null` and then
|
|
499
|
-
// handed back
|
|
500
|
-
// `{"type":"owner","id":"angela"}
|
|
499
|
+
// handed back eight PERMITTED animals in `included` each naming
|
|
500
|
+
// `{"type":"owner","id":"angela"}` -- angela's whole `pets` set,
|
|
501
|
+
// `[1, 3, 7, 10, 11, 15, 17, 20]`. `included` itself is NINE
|
|
502
|
+
// resources there: those eight animals plus the hidden owner, whose
|
|
503
|
+
// membership is #233's and not an animal. Neither #233 nor #234
|
|
504
|
+
// closes that.
|
|
501
505
|
//
|
|
502
506
|
// THE FILTER IS THE CALLER'S, PASSED IN, NOT BUILT HERE. Both call sites
|
|
503
507
|
// already hold one for the primary document, and sharing it is what keeps
|