Ovidiu Spatacian-Tarnu
11/14/2018, 3:50 AMroberto.guerra
11/14/2018, 3:50 AMroberto.guerra
11/14/2018, 3:50 AMroberto.guerra
11/14/2018, 3:51 AMroberto.guerra
11/14/2018, 3:51 AMOvidiu Spatacian-Tarnu
11/14/2018, 3:54 AM1.21.0-beta.2
but still no changeOvidiu Spatacian-Tarnu
11/14/2018, 3:54 AMJubal Mabaquiao
11/14/2018, 3:56 AMJubal Mabaquiao
11/14/2018, 5:42 AMTypeError: Cannot read property 'selectionSet' of undefined
at /usr/src/app/node_modules/prisma-client-lib/dist/Client.js:321:22
at Array.reduceRight (<anonymous>)
at Client.generateSelections (/usr/src/app/node_modules/prisma-client-lib/dist/Client.js:247:32)
at Client.<anonymous> (/usr/src/app/node_modules/prisma-client-lib/dist/Client.js:95:42)
at step (/usr/src/app/node_modules/prisma-client-lib/dist/Client.js:47:23)
at Object.next (/usr/src/app/node_modules/prisma-client-lib/dist/Client.js:28:53)
at /usr/src/app/node_modules/prisma-client-lib/dist/Client.js:22:71
at new Promise (<anonymous>)
at __awaiter (/usr/src/app/node_modules/prisma-client-lib/dist/Client.js:18:12)
at Client.processInstructions (/usr/src/app/node_modules/prisma-client-lib/dist/Client.js:88:59)
at Client.processInstructionsOnce (/usr/src/app/node_modules/prisma-client-lib/dist/Client.js:84:45)
at Client.<anonymous> (/usr/src/app/node_modules/prisma-client-lib/dist/Client.js:125:51)
at step (/usr/src/app/node_modules/prisma-client-lib/dist/Client.js:47:23)
at Object.next (/usr/src/app/node_modules/prisma-client-lib/dist/Client.js:28:53)
at /usr/src/app/node_modules/prisma-client-lib/dist/Client.js:22:71
at new Promise (<anonymous>)
The server is in docker with node:10prilutskiy
11/14/2018, 6:29 AMyassin
11/14/2018, 6:39 AMyassin
11/14/2018, 6:45 AMhalborg
11/14/2018, 7:12 AMElfayer
11/14/2018, 9:24 AMgraphql-import
doesn't work at all? Is the project dropped?
https://github.com/prisma/graphql-import/issues/235Kevin Marrec
11/14/2018, 10:40 AMKevin Marrec
11/14/2018, 11:14 AMprisma seed
use a seed.ts
which use generated prisma client. In the case you don't have generated files yet, you're just not being able to perform the first deploy.
Everything works with repo as generated
folder is already here when pulling. But IMO generated
folder must be git ignored.Ramin B
11/14/2018, 2:15 PMNaka
11/14/2018, 2:43 PM[field]_contains
to every field and it does not work as expected.siyfion
11/14/2018, 3:45 PMupdate
a relation if it exists, but not error if it doesn’t…?siyfion
11/14/2018, 3:46 PMsiyfion
11/14/2018, 3:48 PMRamin B
11/14/2018, 4:18 PMgraphql-resolver-codegen
is now called graphqlgen
(https://github.com/prisma/graphqlgen). im following an example project (https://github.com/prisma/graphql-prisma-typescript) which still references graphql-resolver-codegen
and has some interface codegen scripts (https://github.com/prisma/graphql-prisma-typescript/blob/master/package.json#L12).. what would the equivalent of that be in the graphqlgen
world?Alex
11/14/2018, 4:29 PMfgreinus
11/14/2018, 5:07 PMfgreinus
11/14/2018, 5:07 PMRamin B
11/14/2018, 7:02 PMError: "resolvers" defined in resolvers, but not in schema
huv1k
11/14/2018, 11:09 PMgraphql-playground
, what was focused on fixing errors in documentation and showing better error messages. https://i.imgur.com/mfdUwbG.png▾
Crazometer
11/15/2018, 1:02 AMValentin
11/15/2018, 1:11 AMRamin B
11/15/2018, 3:03 AMtype User {
id: ID!
email: String!
name: String
active: Boolean
roles: [Role]
permissions: [Permission!]
forms: [MemberForm!]
}
and the following resolver:
import { UserResolvers } from '../generated/graphqlgen'
export const User: UserResolvers.Type = {
...UserResolvers.defaultResolvers,
permissions: (parent, args, ctx) => ctx.db.user({ id: parent.id }).permissions(),
forms: (parent, args, ctx) => ctx.db.user({ id: parent.id }).forms()
}
Any ideas why I would keep getting this error when trying to query for forms
or permissions
on a user?
"Cannot read property 'selectionSet' of undefined"
user(id: "cjohx9n5h002j092058rtzjc6") {
forms {
name
}
permissions {
value
}
}