Skip to content

Commit 5b29f88

Browse files
kriszypcb1kenobi
andauthored
Update docs/technical-details/reference/resource-migration.md
Co-authored-by: Chris Barber <[email protected]>
1 parent 248acab commit 5b29f88

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/technical-details/reference/resource-migration.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ The updated Resource API is enabled on a per-class basis, by setting static `loa
66
* The `get` method (both static and instance) will directly return the record, a frozen enumerable object with direct properties, instead of a Resource instance.
77
* When instance methods are called, there will not be any record preloaded beforehand. And the resource instance will not have properties mapped to a record.
88
* All instance methods accept a `target`, an instance of `RequestTarget`, as the first argument, which identifies the target record or query.
9-
* The `target` will have an `id` property identifying the target resource, along with target information. The `getId()` method will return `undefined`.
9+
* The `target` will have an `id` property identifying the target resource, along with target information.
10+
* The `getId()` method is not required and will return `undefined`.
1011
* The `target` will provide access to query parameters, search operators, and other directives.
1112
* A `target` property of `checkPermission` indicates that a method should check the permission before of request before proceeding. The default instance methods provide the default authorization behavior.
1213
* This supplants the need for `allowRead`, `allowUpdate`, `allowCreate`, and `allowDelete` methods, which shouldn't need to be used (and don't provide the id of the target record).

0 commit comments

Comments
 (0)