{"action":"closed","issue":{"url":"https://api.github.com/repos/prisma/graphqlgen/issues/298","repository_url":"https://api.github.com/repos/prisma/graphqlgen","labels_url":"https://api.github.com/repos/prisma/graphqlgen/issues/298/labels{/name}","comments_url":"https://api.github.com/repos/prisma/graphqlgen/issues/298/comments","events_url":"https://api.github.com/repos/prisma/graphqlgen/issues/298/events","html_url":"https://github.com/prisma/graphqlgen/issues/298","id":380875055,"node_id":"MDU6SXNzdWUzODA4NzUwNTU=","number":298,"title":"Importing types from generated prisma-schema.ts ","user":{"login":"tkawik-dbk","id":39302052,"node_id":"MDQ6VXNlcjM5MzAyMDUy","avatar_url":"https://avatars0.githubusercontent.com/u/39302052?v=4","gravatar_id":"","url":"https://api.github.com/users/tkawik-dbk","html_url":"https://github.com/tkawik-dbk","followers_url":"https://api.github.com/users/tkawik-dbk/followers","following_url":"https://api.github.com/users/tkawik-dbk/following{/other_user}","gists_url":"https://api.github.com/users/tkawik-dbk/gists{/gist_id}","starred_url":"https://api.github.com/users/tkawik-dbk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkawik-dbk/subscriptions","organizations_url":"https://api.github.com/users/tkawik-dbk/orgs","repos_url":"https://api.github.com/users/tkawik-dbk/repos","events_url":"https://api.github.com/users/tkawik-dbk/events{/privacy}","received_events_url":"https://api.github.com/users/tkawik-dbk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-14T20:33:52Z","updated_at":"2018-11-18T14:53:31Z","closed_at":"2018-11-18T14:53:31Z","author_association":"NONE","body":"Is there any way of avoiding duplication of information in the schemas? I mean I would like to reuse graphql schema generated by prisma for populating schema.graphql. Currently generated schema is only available inside prisma-schema.ts and I'm not sure if I can import import it to schema.graphql?\r\n\r\nFor example in https://github.com/prisma/prisma-examples/tree/master/typescript-graphql the schema for the User is duplicated in prisma/datamodel.prisma and in src/schema.graphql. \r\n\r\nAnd maybe related thing. I was completely lost when I was looking for typescript-prisma example project, because I also found https://github.com/prisma/graphql-prisma-typescript, but it was not properly working with my prisma's models. Shouldn't that project disappear to eliminate confusion?"}}
{"actor":{"display_login":"Weakky"}}