Skip to content

Commit ea69a4a

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The Resource API was inspired by two major design ideas: the REST architectural
44

55
The updated Resource API is enabled on a per-class basis, by setting static `loadAsInstance` property to `false`. When this property is set to `false`, this means that the Resource instances will not be bound to a specific record, and instead instances represent the whole table, capturing the context and current transactional state. Any records in the table can be loaded or modified from `this` instance. There are a number of implications and different behaviors from a Resource class with `static loadAsInstance = false`:
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.
7-
* 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.
7+
* 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.
99
* The `target` will have an `id` property identifying the target resource, along with target information.
1010
* The `getId()` method is not required and will return `undefined`.

0 commit comments

Comments
 (0)