{"action":"created","issue":{"url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/issues/58","labels_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/issues/58/comments","events_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/issues/58/events","html_url":"https://github.com/RisingStack/graffiti-mongoose/issues/58","id":116983464,"number":58,"title":"How to use graffiti-mongoose to generate the original graphql schema.js ?","user":{"login":"sulliwane","id":1733686,"avatar_url":"https://avatars.githubusercontent.com/u/1733686?v=3","gravatar_id":"","url":"https://api.github.com/users/sulliwane","html_url":"https://github.com/sulliwane","followers_url":"https://api.github.com/users/sulliwane/followers","following_url":"https://api.github.com/users/sulliwane/following{/other_user}","gists_url":"https://api.github.com/users/sulliwane/gists{/gist_id}","starred_url":"https://api.github.com/users/sulliwane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sulliwane/subscriptions","organizations_url":"https://api.github.com/users/sulliwane/orgs","repos_url":"https://api.github.com/users/sulliwane/repos","events_url":"https://api.github.com/users/sulliwane/events{/privacy}","received_events_url":"https://api.github.com/users/sulliwane/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-11-15T09:47:46Z","updated_at":"2015-11-19T11:12:32Z","closed_at":"2015-11-15T11:00:21Z","body":"Hi,\r\n\r\nI have a mongoose Schema, and I'd like to have a look at the original Graphql that is generated by graffiti-mongoose. Is there some way to let graffiti-mongoose export a Schema.js file?\r\n\r\nbtw, thank you for the great work :+1: "},"comment":{"url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/issues/comments/158025558","html_url":"https://github.com/RisingStack/graffiti-mongoose/issues/58#issuecomment-158025558","issue_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/issues/58","id":158025558,"user":{"login":"sulliwane","id":1733686,"avatar_url":"https://avatars.githubusercontent.com/u/1733686?v=3","gravatar_id":"","url":"https://api.github.com/users/sulliwane","html_url":"https://github.com/sulliwane","followers_url":"https://api.github.com/users/sulliwane/followers","following_url":"https://api.github.com/users/sulliwane/following{/other_user}","gists_url":"https://api.github.com/users/sulliwane/gists{/gist_id}","starred_url":"https://api.github.com/users/sulliwane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sulliwane/subscriptions","organizations_url":"https://api.github.com/users/sulliwane/orgs","repos_url":"https://api.github.com/users/sulliwane/repos","events_url":"https://api.github.com/users/sulliwane/events{/privacy}","received_events_url":"https://api.github.com/users/sulliwane/received_events","type":"User","site_admin":false},"created_at":"2015-11-19T11:12:31Z","updated_at":"2015-11-19T11:12:31Z","body":"this is what it looks like when exported using graffiti-mongoose:\r\n```\r\ninput addCardInput {\r\n  title: String\r\n  description: String\r\n  clientMutationId: String!\r\n}\r\n\r\ntype addCardPayload {\r\n  viewer: Viewer\r\n  changedCardEdge: changedCardEdge\r\n  clientMutationId: String!\r\n}\r\n\r\ntype Card implements Node {\r\n  title: String\r\n  description: String\r\n  _id: ID\r\n  id: ID!\r\n}\r\n```\r\n\r\nand this is what my schema looks like (\"javascript\"):\r\n```\r\nconst Query = new GraphQLObjectType({\r\n  name: 'RootQuery',\r\n  fields: () => ({\r\n    hello: {\r\n      type: GraphQLString,\r\n      resolve() {return 'world';}\r\n    },\r\n});\r\n\r\nconst Schema = new GraphQLSchema({\r\n  query: Query,\r\n  mutation: Mutation\r\n});\r\n\r\nexport default Schema;\r\n```\r\nI need to read more about graphql, I may not be using it the right way..."}}