dan
03/06/2019, 2:28 AMdata: Json! @default(value: {})
-> The value {} is not a valid default for fields of type Json.
dan
03/06/2019, 2:28 AManargu
03/06/2019, 3:40 AManargu
03/06/2019, 3:41 AMMartí Crespí
03/06/2019, 7:21 AMOmprakash
03/06/2019, 10:58 AMrem
03/06/2019, 10:58 AM.node()
https://www.prisma.io/docs/prisma-client/features/realtime-JAVASCRIPT-rsc8/ - how do I ask for something like comments { date, text }
as a sub field of a post subscription (for instance)boennemann
03/06/2019, 1:59 PM03/06 02:44 PM (13m)
Uncaught error from thread [single-server-akka.actor.default-dispatcher-2]: Java heap space, shutting down JVM since 'akka.jvm-exit-on-fatal-error' is enabled for ActorSystem[single-server]
03/06 02:44 PM (13m)
java.lang.OutOfMemoryError: Java heap space
jdoyle112
03/06/2019, 4:49 PMNikita
03/06/2019, 5:07 PMHasen
03/06/2019, 5:48 PMJared Starin
03/06/2019, 6:47 PMboennemann
03/06/2019, 8:02 PMLeonardo
03/06/2019, 8:06 PMRobert
03/06/2019, 8:08 PMtype User {
id: ID!
name: String!
email: String!
links: [Link!]!
}
and in ‘datamodel.prisma’ I have
`
type User {
id: ID! @unique
name: String!
email: String! @unique
password: String!
links: [ Link!] !
}
Leonardo
03/06/2019, 8:21 PMMichael
03/06/2019, 9:04 PMmessage":"Encountered unknown SQL type float8 with column lat. IntrospectedColumn(lat,float8,null,true)"}}
Madhav
03/06/2019, 10:02 PMezeikel
03/07/2019, 1:19 AM// datamodel.prisma
type User {
id: ID! @id
firstName: String!
lastName: String!
username: String @unique
email: String! @unique
password: String!
posts: [Post!]! @relation(link: INLINE)
following: [User!]! @relation(name: "Following", link: INLINE)
followers: [User!]! @relation(name: "Followers", link: INLINE)
createdAt: DateTime! @createdAt
updatedAt: DateTime! @updatedAt
}
type Post {
id: ID! @id
caption: String
image: String
published: Boolean @default(value: false)
author: User
createdAt: DateTime! @createdAt
updatedAt: DateTime! @updatedAt
}
My user
resolver looks like this:
user (_, { id }, ctx, info) {
return ctx.prisma.user({ id }, info);
},
If i try to query for a user’s posts:
{
user(id: "5c7c04e824aa9a0007495114") {
firstName
posts {
id
}
}
}
I get Cannot return null for non-nullable field User.posts.
and not sure why? I can see the data is there in the Posts
collection via Mongo Compass but dont seem to be able to query it.Martí Crespí
03/07/2019, 7:08 AMChristian
03/07/2019, 10:06 AMThe server was not able to produce a timely response to your request
once in a while... is it due to a timeout? If yes, any chance to increase the limit?Siddhant
03/07/2019, 11:04 AMJeroen
03/07/2019, 1:14 PMrPRs: (root, args, ctx, info) => {
return ctx.db.query.rPRs(args, info);
},
My Schema:
type RPR {
id: ID! @Unique
RPRID: String! @Unique
state: String
region: Region!
resource: Resource!
price: Float
theme: String
editionTitle: String
information: String
}
type Region {
id: ID! @Unique
regionID: String! @Unique
label: String! @Unique
name: String! @Unique
aov: Float!
aov_multiplier: Float!
}
Query:
query ADVICE_RESOURCES_QUERY($theme: String, $regio: String) {
rPRs(where: {
theme: $theme,
region: {
label: $regio
}
})
{
RPRID
region {
label
}
}
}
Omprakash
03/07/2019, 2:21 PMNaka
03/07/2019, 2:47 PMrein
03/07/2019, 3:21 PMprisma init
but I do not see the service appear in the list of services on prisma.io even though I selected the correct server.gaby
03/07/2019, 4:23 PMl0ck3
03/07/2019, 4:25 PMMichael Jones
03/07/2019, 5:09 PMNishant
03/07/2019, 5:48 PM