Your IP : 216.73.217.13


Current Path : /home/deltalab/PMS/sms-connector/node_modules/graphql-compose-mongoose/lib/errors/
Upload File :
Current File : //home/deltalab/PMS/sms-connector/node_modules/graphql-compose-mongoose/lib/errors/MongoError.js

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getMongoErrorOTC = void 0;
function getMongoErrorOTC(schemaComposer) {
    return schemaComposer.getOrCreateOTC('MongoError', (otc) => {
        otc.addFields({
            message: {
                description: 'MongoDB error message',
                type: 'String',
            },
            code: {
                description: 'MongoDB error code',
                type: 'Int',
            },
        });
    });
}
exports.getMongoErrorOTC = getMongoErrorOTC;
//# sourceMappingURL=MongoError.js.map