... | @@ -3,6 +3,11 @@ crud |
... | @@ -3,6 +3,11 @@ crud |
|
* for js data all the old methods that had find now use the word read instead
|
|
* for js data all the old methods that had find now use the word read instead
|
|
* for jsdata loadrelations you have to specify what relations to load ex) ` foo.loadrealations('barObj')`
|
|
* for jsdata loadrelations you have to specify what relations to load ex) ` foo.loadrealations('barObj')`
|
|
|
|
|
|
|
|
OLD STUFF:
|
|
|
|
[[ Our js-data config plays nice with DRF. It handles the deserialization of responses that contain paginated meta data. Additional resource methods have been defined such as `findAllPaged`, `list`, `patch`, and `paging` (detailed below). Three instance methods have been added as `DSPatch`, `detail`, and `debouncedUpdate`. View `src/common/api.js` to inspect their implementation details. ]] -- need to update
|
|
|
|
[[ Lastly, a $http response interceptor has been defined which will attempt to parse DRF error responses and create a human readable string, which is attached to the promise rejection as `rejection.error`.
|
|
|
|
(e.g. `User.patch(changes).catch(err => alert(err.error));`) ]] -- need to update
|
|
|
|
|
|
|
|
|
|
```typescript
|
|
```typescript
|
|
class Book (models.Model):
|
|
class Book (models.Model):
|
... | | ... | |