lani
03/11/2018, 7:16 PMUnknown directive "unique". (KnownDirectives)
.
Edit: Also posted it on the forum: https://www.graph.cool/forum/t/location-of-graphql-definitions-for-built-in-types-in-prisma/2808Vdrizzle
03/11/2018, 8:33 PMPostToUser (Relation)
- Deleted relation between undefined and undefined
and its stuck applying changes. Any ideas?jefe_spain
03/11/2018, 8:34 PMpnicolaou
03/11/2018, 8:42 PMtype User {
id: ID! @unique
createdAt: DateTime!
username: String! @unique
following: [User!]!
followers: [User!]!
}
And when I do prisma deploy I get
User
✖️ The relation field following
must specify a @relation
directive: @relation(name: "MyRelation")
✖️ The relation field followers
must specify a @relation
directive: @relation(name: "MyRelation")
If I edit the model to look like
type User {
id: ID! @unique
createdAt: DateTime!
username: String! @unique
following: [User!]! @relation(name: "Following")
followers: [User!]! @relation(name: "Followers")
}
I get UnhandledPromiseRejectionWarning: Error: Whoops. Looks like an internal server error.aeblin
03/12/2018, 1:22 AMgrapqhl-yoga
right now and getting errors on import, as if it’s not compiling properly into ES6. Is babel not configured for that as part of grapqhl-yoga
?aeblin
03/12/2018, 1:30 AMaeblin
03/12/2018, 3:07 AMgraphql-yoga
and resolve the following?
(function (exports, require, module, __filename, __dirname) { import { GraphQLServer } from './graphql-yoga';
^^^^^^
SyntaxError: Unexpected token import
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:588:28)
at Object.Module._extensions..js (module.js:635:10)
at Module.load (module.js:545:32)
at tryModuleLoad (module.js:508:12)
at Function.Module._load (module.js:500:3)
at Function.Module.runMain (module.js:665:10)
at startup (bootstrap_node.js:187:16)
at bootstrap_node.js:607:3
error An unexpected error occurred: "Command failed.
Exit code: 1
Command: sh
Arguments: -c node .
aeblin
03/12/2018, 4:46 AMTypeError: typeDefs.reduce is not a function
Anyone experienced this and able to help?justinrich
03/12/2018, 5:44 AMjustinrich
03/12/2018, 5:44 AMVendicto
03/12/2018, 8:49 AMhalborg
03/12/2018, 9:07 AMgeorgelovegrove
03/12/2018, 9:28 AMMoritz
03/12/2018, 9:34 AMdata: {
name,
images: {
connect: {
id: image
}
}
}
, which throws an error when the image param is null: "_data": {
"name": "Badman",
"images": {
"connect": [
{}
]
}
},
Do I need to create different mutations with an if loop or is there a quick and dirty way? Should prisma connect ignore empty values, i.e. I though it did in the past... Any thoughts? Thanks!Ben
03/12/2018, 11:17 AMsrc/functionname.graphql
brunoguerra
03/12/2018, 12:21 PMhalborg
03/12/2018, 1:26 PMsakhmedbayev
03/12/2018, 3:36 PMsakhmedbayev
03/12/2018, 3:36 PMsakhmedbayev
03/12/2018, 3:36 PMharmony
03/12/2018, 3:44 PMharmony
03/12/2018, 3:44 PMterion
03/12/2018, 4:47 PMallpwrfulroot
03/12/2018, 5:12 PMlawjolla
03/12/2018, 5:29 PMMcArthur
03/12/2018, 7:04 PMRishitKedia
03/12/2018, 7:49 PMapollo-upload-server
. Need some help for making it work on AWS Lambda and API Gateway. https://github.com/jaydenseric/apollo-upload-server/issues/58 Thanks for your time! 🙏lastmjs
03/12/2018, 10:47 PMKimiiz
03/13/2018, 7:04 AMAntonio
03/13/2018, 7:50 AM