lewisedc
05/29/2019, 12:32 PMtaikn
05/29/2019, 1:13 PM1.3.4
on github 🙏Fitch
05/29/2019, 7:21 PMandrux
05/29/2019, 8:57 PMtype Message {
id: ID! @id @unique
text: String
media: String
sender: User! @relation(name: "MessageSender")
seenBy: [User!] @relation(name: "MessageUsersSeenBy")
deletedBy: User @relation(name: "MessageUserDeletedBy")
deletedForAll: Boolean! @default(value: false)
createdAt: DateTime! @createdAt
updatedAt: DateTime! @updatedAt
}
I keep getting there’s an ambiguity in the relation between User and Message, I would usually just add the relation for Message in the User type but that doesn’t make sense in my schemaandrux
05/29/2019, 8:57 PMandrux
05/29/2019, 8:58 PMThere is a relation ambiguity during the migration. Please first name the old relation on your schema. The ambiguity is on a relation between Message and User. Please name relations or change the schema in steps.
Samuel Roth
05/29/2019, 9:07 PMAlexander
05/30/2019, 5:23 AMcolumn Alias.estimatedAmount does not exist
and only happen with fields that have underscore( _ ) Real example : In my database (postgres) i have a column that called estimated_amount and prisma instrospect
change to estimatedAmount in datamodel. (You can look the picture). Any knows the solution ? Please help me. thanksAlexander
05/30/2019, 5:24 AMHeng
05/30/2019, 6:22 AMAndrei Bacescu
05/30/2019, 8:15 AMEasy
05/30/2019, 12:40 PMListi
05/30/2019, 12:43 PMerror creating handler: waiting for <http://127.0.0.1:37893> to be in listening state
And the response is {
"message": "Internal server error"
}
Anyone ever run into this problem? Please share if do 🙂 Thanks!victory1908
05/30/2019, 2:03 PMvictory1908
05/30/2019, 2:03 PMvictory1908
05/30/2019, 2:03 PMt.field('mentionUsers', {
type: 'Timeline',
args: {
list_user_id: stringArg({list: true}),
timeline_id: stringArg()
},
resolve: (parent, { list_user_id, timeline_id }, ctx) => {
const userId = getUserId(ctx)
// if (ctx.prisma.timeline({id: timeline_id}).author == ctx.prisma.user({id: getUserId()})) {
//
// }
return ctx.prisma.updateTimeline({
where: {
id: timeline_id
},
data: {
mentions: {
connect: {
id_in: list_user_id
}
}
}
})
}
})
victory1908
05/30/2019, 2:04 PMid_in: list_user_id
Matteo Villa
05/30/2019, 2:30 PMSteven Vachon
05/30/2019, 3:20 PMJunsu Kim
05/30/2019, 3:32 PMrein
05/30/2019, 3:35 PMrein
05/30/2019, 3:35 PMSteven Vachon
05/30/2019, 3:36 PMSteven Vachon
05/30/2019, 3:36 PMSteven Vachon
05/30/2019, 4:22 PMprisma_1 | Server running on :4466
node_1 | Could not connect to server at http://localhost:4466. Please check if your server is running.
victory1908
05/30/2019, 4:48 PMjdoyle112
05/30/2019, 5:50 PMjdoyle112
05/30/2019, 5:51 PMjdoyle112
05/30/2019, 5:51 PMArmaan Dhanji
05/30/2019, 6:01 PM