"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const v4_1 = __importDefault(require("uuid/v4"));
const typeorm_1 = require("typeorm");
const entities_1 = require("../../../entities");
exports.createPlayGroup = {
    async createPlayGroup(_, { playGroup: attrs }) {
        const repository = typeorm_1.getRepository(entities_1.PlayGroup);
        const playGroup = Object.assign({ id: v4_1.default() }, attrs);
        return await repository.save(playGroup);
    }
};
//# sourceMappingURL=create-play-group.js.map