{"size": 445, "ext": "js", "max_stars_repo_path": "client/src/store/mutations.js", "max_stars_repo_name": "rtw590/vue-express-mongo-boilerplate", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "client/src/store/mutations.js", "max_issues_repo_name": "rtw590/vue-express-mongo-boilerplate", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "client/src/store/mutations.js", "max_forks_repo_name": "rtw590/vue-express-mongo-boilerplate", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 26.1764705882, "max_line_length": 76, "alphanum_fraction": 0.6943820225}
// Mutations are methods that change the state directly, must be synchronous
// Can receive payload passed in from component or from action?

export default {
  // Put all mutations here
  // First pass in the state and then we are receiving users from the action
  GET_ALL_USERS(state, users) {
    state.users = users;
  },
  CHANGE_USERS(state, users) {
    state.users = users;
  },
  GET_POSTS(state, json) {
    state.posts = json;
  }
};
