Created
May 15, 2018 06:16
-
-
Save JakeDawkins/1799d60465a9c343855da5502ffeaf2f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export const generateUserModel = ({ user }) => ({ | |
| getAll: () => { /* fetching/transform logic for all users */ }, | |
| getById: (id) => { /* fetching/transform logic for a single user */ }, | |
| getByGroupId: (id) => { /* fetching/transform logic for a group of users */ }, | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment