Michael Aubry
07/23/2020, 9:49 PMMichael Aubry
07/24/2020, 12:29 AMMichael Aubry
07/24/2020, 12:53 AMSlackbot
07/24/2020, 4:07 PMAshiqur Rahman
07/24/2020, 4:27 PMvolumes:
- /bitnami/postgresql
what is the best way to set volume?
may be there is a chance of data loss by using above codeManthan Mallikarjun
07/25/2020, 2:10 AMKaran
07/25/2020, 5:32 AMMike Dietz
07/25/2020, 9:33 PMManthan Mallikarjun
07/25/2020, 9:49 PMMunkhtegsh Munkhbat
07/25/2020, 10:43 PMconst { PrismaClient } = require('@prisma/client')
const prisma = new PrismaClient()
const server = new GraphQLServer({
typeDefs: './src/schema.graphql',
resolvers,
context: {
prisma,
}
})
https://www.howtographql.com/graphql-js/5-connecting-server-and-database/Manthan Mallikarjun
07/26/2020, 6:43 AMYerlan
07/26/2020, 7:57 AMawait this.client.movieList.update({
where: { id: parseInt(listId) },
data: {
movies: {
delete: { id: parseInt(movieId) },
},
},
});
In this case, if movieList doesn't contain movie with id=movieId, It's throwing errorJan Wilhelm
07/26/2020, 10:23 AMAwey
07/26/2020, 4:00 PMAwey
07/27/2020, 2:52 AMWarren Day
07/27/2020, 8:39 AMSachin Jangid
07/27/2020, 9:11 AMErrorname
07/27/2020, 10:30 AMAshwin Kudva
07/27/2020, 4:11 PMvnadygin
07/27/2020, 5:31 PMThese models do not have a unique identifier or id and are therefore commented out.
• "UserFollows"
And my generated schema doesn’t looks right:
// The underlying table does not contain a unique identifier and can therefore currently not be handled.
// model UserFollows {
// A String
// B String
// User_UserTo_UserFollows_A User @relation("UserTo_UserFollows_A", fields: [A], references: [id])
// User_UserTo_UserFollows_B User @relation("UserTo_UserFollows_B", fields: [B], references: [id])
// @@map("_UserFollows")
// }
So that is the correct way to implement self many to many relation?Suhail
07/28/2020, 3:42 AMprisma1
+ mongo
GraphQL Error: {
"0": "<",
"1": "h",
"2": "t",
"3": "m",
"4": "l",
"5": ">",
"6": "\r",
"7": "\n",
"8": "<",
"9": "h",
"10": "e",
"11": "a",
"12": "d",
"13": ">",
"14": "<",
"15": "t",
"16": "i",
"17": "t",
"18": "l",
"19": "e",
"20": ">",
"21": "5",
"22": "0",
"23": "2",
"24": " ",
"25": "B",
"26": "a",
"27": "d",
"28": " ",
"29": "G",
"30": "a",
"31": "t",
"32": "e",
"33": "w",
"34": "a",
"35": "y",
"36": "<",
"37": "/",
"38": "t",
"39": "i",
"40": "t",
"41": "l",
"42": "e",
"43": ">",
"44": "<",
"45": "/",
"46": "h",
"47": "e",
"48": "a",
"49": "d",
"50": ">",
"51": "\r",
"52": "\n",
"53": "<",
"54": "b",
"55": "o",
"56": "d",
"57": "y",
"58": " ",
"59": "b",
"60": "g",
"61": "c",
"62": "o",
"63": "l",
"64": "o",
"65": "r",
"66": "=",
"67": "\"",
"68": "w",
"69": "h",
"70": "i",
"71": "t",
"72": "e",
"73": "\"",
"74": ">",
"75": "\r",
"76": "\n",
"77": "<",
"78": "c",
"79": "e",
"80": "n",
"81": "t",
"82": "e",
"83": "r",
"84": ">",
"85": "<",
"86": "h",
"87": "1",
"88": ">",
"89": "5",
"90": "0",
"91": "2",
"92": " ",
"93": "B",
"94": "a",
"95": "d",
"96": " ",
"97": "G",
"98": "a",
"99": "t",
"100": "e",
"101": "w",
"102": "a",
"103": "y",
"104": "<",
"105": "/",
"106": "h",
"107": "1",
"108": ">",
"109": "<",
"110": "/",
"111": "c",
"112": "e",
"113": "n",
"114": "t",
"115": "e",
"116": "r",
"117": ">",
"118": "\r",
"119": "\n",
"120": "<",
"121": "h",
"122": "r",
"123": ">",
"124": "<",
"125": "c",
"126": "e",
"127": "n",
"128": "t",
"129": "e",
"130": "r",
"131": ">",
"132": "n",
"133": "g",
"134": "i",
"135": "n",
"136": "x",
"137": "/",
"138": "1",
"139": ".",
"140": "1",
"141": "4",
"142": ".",
"143": "0",
"144": " ",
"145": "(",
"146": "U",
"147": "b",
"148": "u",
"149": "n",
"150": "t",
"151": "u",
"152": ")",
"153": "<",
"154": "/",
"155": "c",
"156": "e",
"157": "n",
"158": "t",
"159": "e",
"160": "r",
"161": ">",
"162": "\r",
"163": "\n",
"164": "<",
"165": "/",
"166": "b",
"167": "o",
"168": "d",
"169": "y",
"170": ">",
"171": "\r",
"172": "\n",
"173": "<",
"174": "/",
"175": "h",
"176": "t",
"177": "m",
"178": "l",
"179": ">",
"180": "\r",
"181": "\n",
"status": 502
}
I am stuck here.Suhail
07/28/2020, 3:42 AMSuhail
07/28/2020, 3:42 AMSuhail
07/28/2020, 3:48 AMSuhail
07/28/2020, 5:19 AMPrisma
at https://github.com/prisma/prisma/issues/3156. I get this error Closed connection [connectionId{localValue:100, serverValue:505819}] to 122.42.142.32:27017 because there was a socket exception raised by this connection.
and java.lang.OutOfMemoryError: Java heap space
very often. Could anyone help here?Etel
The goal of the live-stream series is to explore different patterns and architectures for modern backends with Prisma.
Prisma Client is an autogenerated type-safe database client for Node.js (ORM replacement).
The series will focus on the role of the database in every aspect of backend development including data modeling, the API layer, validation, authentication, authorization, and deployment.
In this first stream, we will start with data modeling, CRUD operations, and aggregations for a real-world problem.
ryan
07/28/2020, 7:19 PMmartin
07/28/2020, 7:34 PMPrisma Client
how do I filter records that have at least one relation? E.g. event
that has 1 or more active registrations
?
I thought of using some: { … }
but that technically is a specific filter (e.g. if a registration is paid or not) rather than a general filter (e.g. if an event has any registrations to begin with).
const events = await prisma.event.findMany({
where: {
{ registrations: { ... } }
}
})
Alvin Khaled
07/28/2020, 9:25 PMJuan Garcia
07/29/2020, 1:39 AM