{"action":"created","issue":{"url":"https://api.github.com/repos/prisma/nexus-prisma/issues/291","repository_url":"https://api.github.com/repos/prisma/nexus-prisma","labels_url":"https://api.github.com/repos/prisma/nexus-prisma/issues/291/labels{/name}","comments_url":"https://api.github.com/repos/prisma/nexus-prisma/issues/291/comments","events_url":"https://api.github.com/repos/prisma/nexus-prisma/issues/291/events","html_url":"https://github.com/prisma/nexus-prisma/issues/291","id":453765313,"node_id":"MDU6SXNzdWU0NTM3NjUzMTM=","number":291,"title":"Getting error: Expression produces a union type that is too complex to represent","user":{"login":"ajaymore","id":7659804,"node_id":"MDQ6VXNlcjc2NTk4MDQ=","avatar_url":"https://avatars0.githubusercontent.com/u/7659804?v=4","gravatar_id":"","url":"https://api.github.com/users/ajaymore","html_url":"https://github.com/ajaymore","followers_url":"https://api.github.com/users/ajaymore/followers","following_url":"https://api.github.com/users/ajaymore/following{/other_user}","gists_url":"https://api.github.com/users/ajaymore/gists{/gist_id}","starred_url":"https://api.github.com/users/ajaymore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajaymore/subscriptions","organizations_url":"https://api.github.com/users/ajaymore/orgs","repos_url":"https://api.github.com/users/ajaymore/repos","events_url":"https://api.github.com/users/ajaymore/events{/privacy}","received_events_url":"https://api.github.com/users/ajaymore/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":22,"created_at":"2019-06-08T07:10:05Z","updated_at":"2019-08-24T07:54:03Z","closed_at":null,"author_association":"NONE","body":"Getting Error: Expression produces a union type that is too complex to represent.ts\r\n\r\n`\"typescript\": \"^3.5.1\"`\r\n\r\nCode \r\n```\r\nimport { prismaObjectType } from 'nexus-prisma';\r\n\r\nexport const User = prismaObjectType({\r\n  name: 'User',\r\n  definition(t) {\r\n    t.prismaFields({ filter: ['password'] });\r\n  }\r\n});\r\n```\r\n\r\ntsconfig.json\r\n```\r\n{\r\n  \"compilerOptions\": {\r\n    /* Basic Options */\r\n    \"target\": \"ESNEXT\" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */,\r\n    \"module\": \"commonjs\" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,\r\n    \"lib\": [\r\n      \"esnext\",\r\n      \"dom\"\r\n    ] /* Specify library files to be included in the compilation. */,\r\n    \"sourceMap\": false /* Generates corresponding '.map' file. */,\r\n    \"outDir\": \"./dist\" /* Redirect output structure to the directory. */,\r\n    \"rootDir\": \"./src\" /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */,\r\n    \"strict\": true /* Enable all strict type-checking options. */,\r\n    \"typeRoots\": [\r\n      \"./node_modules/@types\"\r\n    ] /* List of folders to include type definitions from. */,\r\n    \"types\": [\r\n      \"node\"\r\n    ] /* Type declaration files to be included in compilation. */,\r\n    \"esModuleInterop\": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,\r\n    \"skipLibCheck\": true\r\n  },\r\n  \"exclude\": [\"prisma\", \"migrate.ts\"]\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/prisma/nexus-prisma/issues/comments/524529964","html_url":"https://github.com/prisma/nexus-prisma/issues/291#issuecomment-524529964","issue_url":"https://api.github.com/repos/prisma/nexus-prisma/issues/291","id":524529964,"node_id":"MDEyOklzc3VlQ29tbWVudDUyNDUyOTk2NA==","user":{"login":"Victorkangsh","id":21174764,"node_id":"MDQ6VXNlcjIxMTc0NzY0","avatar_url":"https://avatars1.githubusercontent.com/u/21174764?v=4","gravatar_id":"","url":"https://api.github.com/users/Victorkangsh","html_url":"https://github.com/Victorkangsh","followers_url":"https://api.github.com/users/Victorkangsh/followers","following_url":"https://api.github.com/users/Victorkangsh/following{/other_user}","gists_url":"https://api.github.com/users/Victorkangsh/gists{/gist_id}","starred_url":"https://api.github.com/users/Victorkangsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Victorkangsh/subscriptions","organizations_url":"https://api.github.com/users/Victorkangsh/orgs","repos_url":"https://api.github.com/users/Victorkangsh/repos","events_url":"https://api.github.com/users/Victorkangsh/events{/privacy}","received_events_url":"https://api.github.com/users/Victorkangsh/received_events","type":"User","site_admin":false},"created_at":"2019-08-24T07:54:03Z","updated_at":"2019-08-24T07:54:03Z","author_association":"NONE","body":"The server is start correctly, but build doesn't work.\r\n![image](https://user-images.githubusercontent.com/21174764/63634326-5aeee100-c687-11e9-9401-c9b897ab05ac.png)\r\n"}}
{"actor":{"display_login":"Victorkangsh"}}