-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Some things that can be cleaned up to make using data sources easier.
Required methods
Here's a list of methods that the data source needs to create, retrieve, update and delete data on the server.
find(id:int, request:LoadRequest):voidfindHasMany(record:Record, association:HasManyAssociation, request:LoadRequest):voidcreate(data:Object, request:SaveRequest):voiddelete(data:Object, request:SaveRequest):voidupdate(data:Object, request:SaveRequest):void
HasMany Requests
By default, has-many requests will be try to find a method on the adaptor that matches this pattern: find[AssociationName]. For instance, if we have a TwitterUser record with a has-many association named tweets, findHasMany will try to find a method on the adaptor called findTweets.
Metadata
Metadata
Assignees
Labels
No labels