kratam
09/12/2018, 12:44 PMprisma generate
doesn't create a separate prisma.graphql
, how can I import graphql `Type`s in my schema.graphql
?val
09/12/2018, 1:15 PMwhere
part of a query, when filtering on an optional date object, do objects who's date is null get included in the results? For example. in this query will users whose lastFeedLoad
date is null get included?Render
09/12/2018, 2:08 PMChristian
09/12/2018, 2:25 PMWhoops. Looks like an internal server error.
Daniel
09/12/2018, 3:25 PMRender
09/12/2018, 3:52 PMDrew Delianides
09/12/2018, 4:55 PMkratam
09/12/2018, 5:37 PMpreviousValues { id }
is CuidGCValue(cjlhtfvz56jxi0b45g7fnlpp1)
(instead of cjlhtfvz56jxi0b45g7fnlpp1
) ?Moritz
09/12/2018, 7:00 PMweakky
09/12/2018, 8:21 PMprisma-examples
repositorylawjolla
09/12/2018, 8:44 PMLucas Munhoz
09/13/2018, 6:31 AMLucas Munhoz
09/13/2018, 6:32 AMcredentials
field in my Account
type, and I want to remove it from my exposed schema. I was wondering if schema transformation is the way to go.rwatts3
09/13/2018, 8:48 AMrwatts3
09/13/2018, 8:49 AMflamez
09/13/2018, 9:37 AMval
09/13/2018, 1:15 PMwhere
clause with multiple inputs do I have to surround them with an AND
or is it implicit?Bruno Prela
09/13/2018, 2:37 PMmigrations: false
in the docker-compose.yml, and I thought this issue had gone away (with the help of @sorenbs) but I was wrong and get a series of errors upon doing that and running prisma deploy which do not appear when running prisma deploy without that setting on: Errors:
ExampleSetting1
✖ The required field `id` is missing and has to have the format: id: ID! @unique or id: UUID! @unique or id: Int! @unique.
ExampleSetting2
✖ The required field `id` is missing and has to have the format: id: ID! @unique or id: UUID! @unique or id: Int! @unique.
ExampleType1
✖ The scalar field `exampleField` has the wrong format: `[String!]` Possible Formats: `String`, `String!`
ExampleType2
✖ The scalar field `exampleField` has the wrong format: `[String!]!` Possible Formats: `String`, `String!`
ExampleType3
✖ The scalar field `exampleField1` has the wrong format: `[String!]` Possible Formats: `String`, `String!`
✖ The scalar field `exampleField2` has the wrong format: `[String!]` Possible Formats: `String`, `String!`
Deployment canceled. Please fix the above errors to continue deploying.
I was wondering why these errors show up only during a deployment with migrations:false
, or perhaps if I can even do an initial deployment of my tables with a prisma service when I have that setting.chewy
09/13/2018, 2:58 PMkratam
09/13/2018, 3:14 PMtype Role {
id: ID! @unique
name: RoleEnum! @unique
users: [User!]!
}
enum RoleEnum {
ADMIN
USER
}
type User {
id: ID! @unique
name: String!
roles: [Role!]!
}
How can I add a connection from both sides? Will this work?
ctx.db.mutation.updateRole({
where: {
name: RoleName,
},
data: {
users: {
connect: {
id: userId
}
}
}
})
scottdj92
09/13/2018, 3:15 PMAzi
09/13/2018, 3:25 PMjdoyle112
09/13/2018, 3:54 PMjdoyle112
09/13/2018, 3:54 PMkratam
09/13/2018, 3:59 PMhectorjhs
09/13/2018, 4:35 PMprisma
with an existing postgres db ?jdoyle112
09/13/2018, 5:35 PMpatrickdevivo
09/13/2018, 5:43 PMfront-ends
<-> graphql-server
<-> prisma
<-> database
. you can expose prisma directly to your frontends, but then the frontend can pretty much do any database operation, so you’ll want to define and self manage a graphql server that talks to prisma and processes requests from frontendspatrickdevivo
09/13/2018, 5:44 PMjdoyle112
09/13/2018, 5:48 PM