UNPKG

graphql-compose-mongoose

Version:

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

15 lines (12 loc) 341 B
"use strict"; exports.__esModule = 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;