Naka
04/10/2019, 10:52 PM1.20.5
and want to use set
feature between relations that was added later. Is there an update guide with breaking changes? I found Update to ...
links on Release and Maintenance section on prisma docs but they are outdated.Naka
04/11/2019, 12:40 PMHarshit
04/11/2019, 12:41 PMHarshit
04/11/2019, 12:41 PMNaka
04/11/2019, 1:41 PMset
function on a toMany relation. Do you know what I can be doing wrong?Jared
04/11/2019, 1:48 PMNaka
04/11/2019, 1:49 PMJared
04/11/2019, 1:49 PMNaka
04/11/2019, 1:50 PMset
on toMany relations was released on 1.25.0Jared
04/11/2019, 1:51 PMJared
04/11/2019, 1:51 PMNaka
04/11/2019, 1:54 PMJared
04/11/2019, 1:56 PM"resolutions": {
"graphql": "14.2.1"
}
Naka
04/11/2019, 2:04 PMgraphql-binding
Naka
04/11/2019, 2:04 PMNaka
04/11/2019, 2:08 PMnode_modules/graphql-binding/dist/codegen/TypescriptGenerator.d.ts:22:40 - error TS2315: Type 'GraphQLObjectType' is not generic.
Naka
04/11/2019, 2:08 PMJared
04/11/2019, 2:11 PMHarshit
04/11/2019, 2:12 PMHarshit
04/11/2019, 2:12 PMNaka
04/11/2019, 2:15 PM"dependencies": {
"bcryptjs": "2.4.3",
"graphql-yoga": "1.16.0",
"jsonwebtoken": "8.3.0",
"sendgrid": "^5.2.3",
"request": "2.88.0",
"moment": "^2.22.1"
},
"devDependencies": {
"@types/node": "~8.9.4",
"@types/validator": "9.4.2",
"@types/zen-observable": "^0.8.0",
"aws-sdk": "2.346.0",
"dotenv": "6.1.0",
"dotenv-cli": "1.4.0",
"graphql-middleware": "2.0.2",
"lodash": "4.17.11",
"merge-graphql-schemas": "1.5.7",
"nodemon": "1.18.5",
"npm-run-all": "4.1.3",
"prisma": "1.30.1",
"prisma-binding": "2.0.2",
"rimraf": "2.6.2",
"ts-node": "7.0.1",
"tslint": "5.11.0",
"typescript": "2.9.2"
},
"resolutions": {
"graphql": "14.2.1"
},
Naka
04/11/2019, 2:16 PMJared
04/11/2019, 2:17 PMyarn upgrade-interactive
to quickly upgrade all the deps. You get a cool cli interface to choose which one to updateJared
04/11/2019, 2:18 PMHarshit
04/11/2019, 2:18 PMNaka
04/11/2019, 2:19 PMNaka
04/11/2019, 2:21 PMNaka
04/11/2019, 2:27 PMyarn upgrade-interactive
and got
yarn upgrade-interactive v1.15.2
success All of your dependencies are up to date.
Naka
04/11/2019, 2:29 PMnode_modules/graphql-binding/dist/codegen/TypescriptGenerator.d.ts:22:40 - error TS2315: Type 'GraphQLObjectType' is not generic.
Harshit
04/11/2019, 2:30 PMHarshit
04/11/2019, 2:30 PMHarshit
04/11/2019, 2:30 PMNaka
04/11/2019, 2:32 PMset
option on a toMany relations updateNaka
04/11/2019, 2:32 PMNaka
04/11/2019, 2:46 PMgraphql get-schema --project database
The database config in graphqlconfig.yml
is like this:
database:
prisma: database/prisma.yml
schemaPath: "src/generated/prisma.graphql"
extensions:
prisma: database/prisma.yml
codegen:
- generator: prisma-binding
language: typescript
output:
binding: src/generated/prisma.ts
Naka
04/11/2019, 6:00 PMprisma generate
and the schema was updated nowNaka
04/11/2019, 6:00 PM