import {Meteor} from 'meteor/meteor';
import {Quiz} from "../../both/models/quiz.model";
import {QuizCollection} from "../../both/collections/quiz.collection";


Meteor.methods({
    saveQuiz: function(quizModel: Quiz) {
        return QuizCollection.insert(quizModel);
    }
});
import {Meteor} from 'meteor/meteor';
import {Quiz} from "../../both/models/quiz.model";
import {QuizCollection} from "../../both/collections/quiz.collection";


Meteor.methods({
    saveQuiz: function(quizModel: Quiz) {
        return QuizCollection.collection.insert(quizModel);
    }
});
Use collection to get the id of the inserted quiz
Use collection to get the id of the inserted quiz
