Skip to content

Instantly share code, notes, and snippets.

@JakeDawkins
Created May 15, 2018 06:15
Show Gist options
  • Select an option

  • Save JakeDawkins/59e27bea360ff69c05e1453b4ba10a0e to your computer and use it in GitHub Desktop.

Select an option

Save JakeDawkins/59e27bea360ff69c05e1453b4ba10a0e to your computer and use it in GitHub Desktop.
export const 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