UNPKG

graphql-compose-mongoose

Version:

Plugin for `graphql-compose` which derive a graphql types from a mongoose model.

17 lines (14 loc) 379 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _mongooseCommon = require("./mongooseCommon"); const ContactsSchema = new _mongooseCommon.Schema({ phones: [String], email: String, skype: String, locationId: _mongooseCommon.Schema.Types.ObjectId }); var _default = ContactsSchema; exports.default = _default;