{"action":"created","issue":{"url":"https://api.github.com/repos/graphql-compose/graphql-compose-mongoose/issues/144","repository_url":"https://api.github.com/repos/graphql-compose/graphql-compose-mongoose","labels_url":"https://api.github.com/repos/graphql-compose/graphql-compose-mongoose/issues/144/labels{/name}","comments_url":"https://api.github.com/repos/graphql-compose/graphql-compose-mongoose/issues/144/comments","events_url":"https://api.github.com/repos/graphql-compose/graphql-compose-mongoose/issues/144/events","html_url":"https://github.com/graphql-compose/graphql-compose-mongoose/issues/144","id":389847875,"node_id":"MDU6SXNzdWUzODk4NDc4NzU=","number":144,"title":"Required properties in Create Resolvers","user":{"login":"israelglar","id":35918076,"node_id":"MDQ6VXNlcjM1OTE4MDc2","avatar_url":"https://avatars2.githubusercontent.com/u/35918076?v=4","gravatar_id":"","url":"https://api.github.com/users/israelglar","html_url":"https://github.com/israelglar","followers_url":"https://api.github.com/users/israelglar/followers","following_url":"https://api.github.com/users/israelglar/following{/other_user}","gists_url":"https://api.github.com/users/israelglar/gists{/gist_id}","starred_url":"https://api.github.com/users/israelglar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/israelglar/subscriptions","organizations_url":"https://api.github.com/users/israelglar/orgs","repos_url":"https://api.github.com/users/israelglar/repos","events_url":"https://api.github.com/users/israelglar/events{/privacy}","received_events_url":"https://api.github.com/users/israelglar/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-12-11T16:30:06Z","updated_at":"2018-12-12T13:49:41Z","closed_at":"2018-12-12T13:45:11Z","author_association":"CONTRIBUTOR","body":"Reposting in right repo from https://github.com/graphql-compose/graphql-compose/issues/151\r\n\r\nI have a User schema\r\n```ts\r\nconst UserSchema = new Mongoose.Schema(\r\n  {\r\n    email: {type: String, unique: true, required: true},\r\n    name: {type: String, required: true},\r\n  },\r\n  {\r\n    timestamps: true,\r\n  },\r\n);\r\n```\r\nAfter using `composeWithMongoose` and exposing all CRUD resolvers the result for the Create methods are:\r\n```graphql\r\ntype CreateOneUserInput {\r\n  email: String\r\n  name: String\r\n  updatedAt: Date\r\n  createdAt: Date\r\n}\r\ntype CreateManyUserInput {\r\n  email: String\r\n  name: String\r\n  updatedAt: Date\r\n  createdAt: Date\r\n}\r\n```\r\nThe properties `email` and `name` should be required.\r\n\r\nI just recently started using the library, so maybe there is something in docs that I didn't see.\r\nIf it's a bug, I can contribute with a fix with some guidance.\r\nThanks"},"comment":{"url":"https://api.github.com/repos/graphql-compose/graphql-compose-mongoose/issues/comments/446593883","html_url":"https://github.com/graphql-compose/graphql-compose-mongoose/issues/144#issuecomment-446593883","issue_url":"https://api.github.com/repos/graphql-compose/graphql-compose-mongoose/issues/144","id":446593883,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NjU5Mzg4Mw==","user":{"login":"nodkz","id":1946920,"node_id":"MDQ6VXNlcjE5NDY5MjA=","avatar_url":"https://avatars2.githubusercontent.com/u/1946920?v=4","gravatar_id":"","url":"https://api.github.com/users/nodkz","html_url":"https://github.com/nodkz","followers_url":"https://api.github.com/users/nodkz/followers","following_url":"https://api.github.com/users/nodkz/following{/other_user}","gists_url":"https://api.github.com/users/nodkz/gists{/gist_id}","starred_url":"https://api.github.com/users/nodkz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nodkz/subscriptions","organizations_url":"https://api.github.com/users/nodkz/orgs","repos_url":"https://api.github.com/users/nodkz/repos","events_url":"https://api.github.com/users/nodkz/events{/privacy}","received_events_url":"https://api.github.com/users/nodkz/received_events","type":"User","site_admin":false},"created_at":"2018-12-12T13:49:41Z","updated_at":"2018-12-12T13:49:41Z","author_association":"MEMBER","body":":tada: This issue has been resolved in version 5.2.0 :tada:\n\nThe release is available on:\n- [npm package (@latest dist-tag)](https://www.npmjs.com/package/graphql-compose-mongoose)\n- [GitHub release](https://github.com/graphql-compose/graphql-compose-mongoose/releases/tag/v5.2.0)\n\nYour **[semantic-release](https://github.com/semantic-release/semantic-release)** bot :package::rocket:"}}
{"actor":{"display_login":"nodkz"}}