darrindickey
02/09/2019, 5:24 AMstate: {
connect: {
key: “south-carolina”,
key: “texas”,
key: “west-virginia”
}
}
Also, I see relations are required fields. State: [state!]!
What if I don’t want that field to be required? I want the user to be able to leave the field blank. Howe do I do that?rctandfk
02/09/2019, 9:59 AMezeikel
02/09/2019, 10:27 AMDockerfile
?Luca
02/09/2019, 12:39 PM\d
results in No relations found
.Luca
02/09/2019, 12:55 PMDarryl
02/09/2019, 1:30 PM@model
in datamodel.graphql
? I’m looking at some code I wrote last summer and comparing to up-to-date documentation and I see no mention of @model
now. 😕Darryl
02/09/2019, 1:31 PMtype User @model {
id: ID! @unique
name: String
email: String! @unique
}
mharrvic
02/09/2019, 2:01 PMsapkra
02/09/2019, 5:15 PMAndres Espinosa
02/09/2019, 6:59 PMAndres Espinosa
02/09/2019, 7:00 PMAndres Espinosa
02/09/2019, 7:04 PMdocker exec -it <container-id> psql -U prisma
-> \c postgres
-> \dt
and no relations were foundLuca
02/09/2019, 9:40 PMBenoit Ranque
02/10/2019, 2:17 AMBenoit Ranque
02/10/2019, 2:20 AMChristoph Dietrich
02/10/2019, 7:58 PMDarryl
02/10/2019, 8:02 PMschema.graphql
, do I have to rewrite all my types (models) again just as they are in datamodel.prisma
?Darryl
02/10/2019, 8:02 PMschema.graphql
I had # import * from './generated/prisma.graphql'
at the top. This doesn’t seem to work now and isn’t mentioned anywhere in the documentation.Darryl
02/10/2019, 8:12 PMLuca
02/10/2019, 8:36 PMLuca
02/10/2019, 8:36 PMJohn
02/10/2019, 9:26 PMThomas Tran
02/10/2019, 10:57 PMBenoit Ranque
02/11/2019, 3:38 AMtonymj
02/11/2019, 9:14 AMvar DefaultEndpoint = ""<http://localhost:4466>""
to var DefaultEndpoint = "<http://localhost:4466>"
in v1.25.. Right now am facing a huge error that i don't know how to solve each time i run go run script/gqlgen.go
. The funny thing is this code runs fine until the upgrade
this is the error: /home/tonymj/gocode/pkg/mod/github.com/prisma/prisma-client-lib-go@v0.0.0-20181017161110-68a1f9908416/exec.go:7:2: could not import <http://github.com/mitchellh/mapstructure|github.com/mitchellh/mapstructure> (cannot find package "<http://github.com/mitchellh/mapstructure|github.com/mitchellh/mapstructure>" in any of:
/snap/go/3129/src/github.com/mitchellh/mapstructure (from $GOROOT)
/home/tonymj/gocode/src/github.com/mitchellh/mapstructure (from $GOPATH))
/home/tonymj/gocode/pkg/mod/github.com/prisma/prisma-client-lib-go@v0.0.0-20181017161110-68a1f9908416/lib.go:8:6: could not import <http://github.com/dgrijalva/jwt-go|github.com/dgrijalva/jwt-go> (cannot find package "<http://github.com/dgrijalva/jwt-go|github.com/dgrijalva/jwt-go>" in any of:
/snap/go/3129/src/github.com/dgrijalva/jwt-go (from $GOROOT)
/home/tonymj/gocode/src/github.com/dgrijalva/jwt-go (from $GOPATH))
/home/tonymj/gocode/pkg/mod/github.com/prisma/prisma-client-lib-go@v0.0.0-20181017161110-68a1f9908416/lib.go:9:2: could not import <http://github.com/machinebox/graphql|github.com/machinebox/graphql> (cannot find package "<http://github.com/machinebox/graphql|github.com/machinebox/graphql>" in any of:
/snap/go/3129/src/github.com/machinebox/graphql (from $GOROOT)
/home/tonymj/gocode/src/github.com/machinebox/graphql (from $GOPATH))
/home/tonymj/gocode/src/github.com/tonymj76/Job/generated/prisma-client/prisma.go:54:40: cannot use opts (variable of type []<http://github.com/machinebox/graphql.ClientOption)|github.com/machinebox/graphql.ClientOption)> as []invalid type value in argument to prisma.New
validation failed: couldn't load packages due to errors: <http://github.com/tonymj76/Job/generated/prisma-client|github.com/tonymj76/Job/generated/prisma-client>, <http://github.com/prisma/prisma-client-lib-go|github.com/prisma/prisma-client-lib-go>
exit status 2
Darryl
02/11/2019, 9:36 AMDarryl
02/11/2019, 9:36 AMDarryl
02/11/2019, 2:06 PMprisma playground
? I see the following:
Cannot read property 'getProjects' of null
Darryl
02/11/2019, 2:06 PMDarryl
02/11/2019, 2:07 PMprisma.yml
and folder structure.