You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -604,7 +604,7 @@ See example [here](https://github.com/michaeljymsgutierrez/arm-js-library/tree/m
604
604
"type":"addresses",
605
605
"attributes": {
606
606
"address1":"Test Address 1",
607
-
"address2":"171872.7.0222",
607
+
"address2":"171872.8.0222",
608
608
"kind":"office",
609
609
"label":"Anabu Hills",
610
610
"latitude":"14.394261",
@@ -702,7 +702,7 @@ See example [here](https://github.com/michaeljymsgutierrez/arm-js-library/tree/m
702
702
address.get('attributes.label')
703
703
```
704
704
705
-
- **Request Functions**
705
+
- **Request and Retrieve Functions**
706
706
- **save(collectionConfig)**
707
707
- Persist collection record changes to server.
708
708
- Create a new record to server only if it doesn't already exist in the database.
@@ -711,7 +711,7 @@ See example [here](https://github.com/michaeljymsgutierrez/arm-js-library/tree/m
711
711
- Will call **PUT** method: `PUT/addresses/2519858`
712
712
- Support collectionConfig. - **optional**
713
713
- Available collectionConfig `(skip, alias, autoResolve, ignorePayload, override)`
714
-
- See example [here](https://github.com/michaeljymsgutierrez/arm-js-library/tree/main/apps/create-next-app/src/app/demo/collection-records/request-functions/save)
714
+
- See example [here](https://github.com/michaeljymsgutierrez/arm-js-library/tree/main/apps/create-next-app/src/app/demo/collection-records/request-retrieve-functions/save)
715
715
716
716
```javascript
717
717
// Returned promise
@@ -727,7 +727,7 @@ See example [here](https://github.com/michaeljymsgutierrez/arm-js-library/tree/m
727
727
- Will call **GET** method: `GET/addresses/2519858`
728
728
- Support collectionConfig. - **optional**
729
729
- Available collectionConfig `(skip, alias, autoResolve, ignorePayload, override)`
730
-
- See example [here](https://github.com/michaeljymsgutierrez/arm-js-library/tree/main/apps/create-next-app/src/app/demo/collection-records/request-functions/reload)
730
+
- See example [here](https://github.com/michaeljymsgutierrez/arm-js-library/tree/main/apps/create-next-app/src/app/demo/collection-records/request-retrieve-functions/reload)
731
731
732
732
```javascript
733
733
// Returned promise
@@ -741,12 +741,20 @@ See example [here](https://github.com/michaeljymsgutierrez/arm-js-library/tree/m
741
741
})
742
742
```
743
743
744
+
- **rollbackAttributes()**
745
+
- Rollback record attributes to their original state without triggering a request.
746
+
- See example [here](https://github.com/michaeljymsgutierrez/arm-js-library/tree/main/apps/create-next-app/src/app/demo/collection-records/request-retrieve-functions/rollback-attributes)
747
+
748
+
```javascript
749
+
address.rollbackAttributes()
750
+
```
751
+
744
752
- **destroyRecord(collectionConfig)**
745
753
- Remove collection record permanently from server.
746
754
- Will call **GET** method: `DELETE/addresses/2519858`
747
755
- Support collectionConfig. - **optional**
748
756
- Available collectionConfig `(skip, alias, autoResolve, ignorePayload, override)`
749
-
- See example [here](https://github.com/michaeljymsgutierrez/arm-js-library/tree/main/apps/create-next-app/src/app/demo/collection-records/request-functions/destroy-record)
757
+
- See example [here](https://github.com/michaeljymsgutierrez/arm-js-library/tree/main/apps/create-next-app/src/app/demo/collection-records/request-retrieve-functions/destroy-record)
750
758
751
759
```javascript
752
760
// Returned promise
@@ -779,7 +787,7 @@ See example [here](https://github.com/michaeljymsgutierrez/arm-js-library/tree/m
779
787
- Sort returned collection records based on passed array of sort criteria.
780
788
- **config - Object**
781
789
- Contains request config such as `(skip, alias, autoResolve, ignorePayload, override)` which are currently available.
782
-
- See example [here](https://github.com/michaeljymsgutierrez/arm-js-library/tree/main/apps/create-next-app/src/app/demo/collection-records/request-functions/get-collection)
790
+
- See example [here](https://github.com/michaeljymsgutierrez/arm-js-library/tree/main/apps/create-next-app/src/app/demo/collection-records/request-retrieve-functions/get-collection)
783
791
784
792
```javascript
785
793
// Get user record from the server but don't preload addresses records.
@@ -1056,26 +1064,9 @@ const addresses = [
1056
1064
1057
1065
## Credits
1058
1066
1059
-
<a href="https://www.facebook.com/skpcls" title="Axl Asuncion (Graphic Artist) - Original logo/design creator">
0 commit comments