This repository was archived by the owner on Jul 12, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 3
Methods
Mateus Abelli edited this page Dec 3, 2023
·
1 revision
| Method | Description |
|---|---|
create() |
Creates a new record. |
update() |
Updates a record. |
deleteOne() |
Deletes a record. |
getOne() |
Gets a single record. |
getList() |
Gets a list of records. |
getMany() |
Gets a list of records by their ids. |
Note Not all the methods have been implemented. See all here.
-
create()create({ resource: "posts", variables: { title: "New post", body: "New post body" } });
-
update()update({ resource: "posts", id: 1, variables: { title: "Updated post" } });
-
deleteOne()deleteOne({ resource: "posts", id: 1 });
-
getOne()getOne({ resource: "posts", id: 3 });
-
getList()getList({ resource: "posts" });
-
getMany()getMany({ resource: "posts", ids: [1, 2, 3] });