{"action":"created","issue":{"url":"https://api.github.com/repos/graphql-cli/graphql-cli/issues/316","repository_url":"https://api.github.com/repos/graphql-cli/graphql-cli","labels_url":"https://api.github.com/repos/graphql-cli/graphql-cli/issues/316/labels{/name}","comments_url":"https://api.github.com/repos/graphql-cli/graphql-cli/issues/316/comments","events_url":"https://api.github.com/repos/graphql-cli/graphql-cli/issues/316/events","html_url":"https://github.com/graphql-cli/graphql-cli/issues/316","id":328972386,"node_id":"MDU6SXNzdWUzMjg5NzIzODY=","number":316,"title":"existsDelegate does not exist on type 'Prisma'","user":{"login":"parweb","id":174339,"node_id":"MDQ6VXNlcjE3NDMzOQ==","avatar_url":"https://avatars0.githubusercontent.com/u/174339?v=4","gravatar_id":"","url":"https://api.github.com/users/parweb","html_url":"https://github.com/parweb","followers_url":"https://api.github.com/users/parweb/followers","following_url":"https://api.github.com/users/parweb/following{/other_user}","gists_url":"https://api.github.com/users/parweb/gists{/gist_id}","starred_url":"https://api.github.com/users/parweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parweb/subscriptions","organizations_url":"https://api.github.com/users/parweb/orgs","repos_url":"https://api.github.com/users/parweb/repos","events_url":"https://api.github.com/users/parweb/events{/privacy}","received_events_url":"https://api.github.com/users/parweb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-04T09:16:35Z","updated_at":"2018-06-14T16:02:31Z","closed_at":null,"author_association":"NONE","body":"Hi\r\n\r\nI cloned the project, a while ago it was working fine until 2 or 3 weeks\r\nhttps://github.com/prismagraphql/graphql-server-example\r\n\r\nversions:\r\n- node: v10.3.0\r\n- npm: 6.1.0\r\n\r\npackage.json\r\n```\r\n{\r\n  \"name\": \"backend\",\r\n  \"version\": \"1.0.0\",\r\n  \"scripts\": {\r\n    \"dev\": \"npm-run-all --parallel start playground\",\r\n    \"start\": \"nodemon -e ts,graphql -x ts-node -r dotenv/config src/index.ts\",\r\n    \"playground\": \"graphql playground\",\r\n    \"build\": \"rm -rf dist && graphql codegen && tsc\",\r\n    \"prisma\": \"prisma\"\r\n  },\r\n  \"dependencies\": {\r\n    \"apollo-engine\": \"1.1.1\",\r\n    \"aws-sdk\": \"2.250.1\",\r\n    \"bcryptjs\": \"2.4.3\",\r\n    \"content-type\": \"1.0.4\",\r\n    \"express\": \"4.16.3\",\r\n    \"graphql-yoga\": \"1.14.6\",\r\n    \"jsonwebtoken\": \"8.2.2\",\r\n    \"mime-types\": \"2.1.18\",\r\n    \"multiparty\": \"4.1.4\",\r\n    \"ndjson\": \"1.5.0\",\r\n    \"prisma-binding\": \"2.0.2\",\r\n    \"raw-body\": \"2.3.3\",\r\n    \"request\": \"2.87.0\",\r\n    \"uuid\": \"3.2.1\"\r\n  },\r\n  \"devDependencies\": {\r\n    \"@types/bcryptjs\": \"2.4.1\",\r\n    \"dotenv\": \"6.0.0\",\r\n    \"graphql-cli\": \"2.16.1\",\r\n    \"nodemon\": \"1.17.5\",\r\n    \"npm-run-all\": \"4.1.3\",\r\n    \"prisma\": \"1.8.3\",\r\n    \"ts-node\": \"6.1.0\",\r\n    \"typescript\": \"^2.9.1\"\r\n  },\r\n  \"prettier\": {\r\n    \"semi\": false,\r\n    \"trailingComma\": \"all\",\r\n    \"singleQuote\": true\r\n  }\r\n}\r\n```\r\n\r\nsrc/generated/prisma.ts(14087,62): error TS2339: Property 'existsDelegate' does not exist on type 'Prisma'."},"comment":{"url":"https://api.github.com/repos/graphql-cli/graphql-cli/issues/comments/397348249","html_url":"https://github.com/graphql-cli/graphql-cli/issues/316#issuecomment-397348249","issue_url":"https://api.github.com/repos/graphql-cli/graphql-cli/issues/316","id":397348249,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NzM0ODI0OQ==","user":{"login":"pixelbacon","id":1641996,"node_id":"MDQ6VXNlcjE2NDE5OTY=","avatar_url":"https://avatars1.githubusercontent.com/u/1641996?v=4","gravatar_id":"","url":"https://api.github.com/users/pixelbacon","html_url":"https://github.com/pixelbacon","followers_url":"https://api.github.com/users/pixelbacon/followers","following_url":"https://api.github.com/users/pixelbacon/following{/other_user}","gists_url":"https://api.github.com/users/pixelbacon/gists{/gist_id}","starred_url":"https://api.github.com/users/pixelbacon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pixelbacon/subscriptions","organizations_url":"https://api.github.com/users/pixelbacon/orgs","repos_url":"https://api.github.com/users/pixelbacon/repos","events_url":"https://api.github.com/users/pixelbacon/events{/privacy}","received_events_url":"https://api.github.com/users/pixelbacon/received_events","type":"User","site_admin":false},"created_at":"2018-06-14T16:02:31Z","updated_at":"2018-06-14T16:02:31Z","author_association":"NONE","body":"I believe the issue is using `prisma-ts`, compared to now directly using `prisma-bindings` as seen in the [prisma/graphql-example-server](https://github.com/prismagraphql/graphql-server-example)\r\n\r\nGot it working using the following `.graphqlconfig.yml`\r\n\r\n```yml\r\nprojects:\r\n  app:\r\n    schemaPath: \"src/schema.graphql\"\r\n    includes: [\"**/*.graphql\"]\r\n    extensions:\r\n      endpoints:\r\n        default: \"http://localhost:4000\"\r\n  db:\r\n    schemaPath: src/generated/database.graphql\r\n    includes: [\"**/*.graphql\"]\r\n    extensions:\r\n      prisma: prisma/prisma.yml\r\n      codegen:\r\n      - generator: prisma-binding\r\n        language: typescript\r\n        output:\r\n          binding: src/generated/prisma.ts\r\n```"}}
{"actor":{"display_login":"pixelbacon"}}