{"size": 191, "ext": "js", "max_stars_repo_path": "server/graphql/resolvers/associations/chatroom.js", "max_stars_repo_name": "ramilzakirov/kazanjs-apollo", "max_stars_repo_stars_event_min_datetime": "2018-03-21T06:54:25.000Z", "max_stars_repo_stars_event_max_datetime": "2018-03-21T06:56:05.000Z", "max_issues_repo_path": "server/graphql/resolvers/associations/chatroom.js", "max_issues_repo_name": "ramilzakirov/kazanjs-apollo", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "server/graphql/resolvers/associations/chatroom.js", "max_forks_repo_name": "ramilzakirov/kazanjs-apollo", "max_forks_repo_forks_event_min_datetime": "2018-04-26T16:25:24.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-02T00:07:09.000Z"}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": 2, "avg_line_length": 19.1, "max_line_length": 63, "alphanum_fraction": 0.6910994764}
import db from '../../../db';

const ChatroomAssociations = {
	messages(chatroom) {
		return db.messages.filter(x => x.chatroomId === chatroom.id);
	}
}

export default ChatroomAssociations;
