Julius Dockwarder
01/18/2020, 5:56 PMgraphql-yoga
to handle errors within my API?Eric
01/19/2020, 9:19 PMinfo
parameter that the prisma client accepts and graphql yoga supplies. I'm using prisma 1.34 and I'm finding that the info
argument isn't really useful. Can someone explain if this is generally safe to not include the info argument and where it might be necessary to provide it?
As a last question, is the info
parameter going to be necessary for Prisma Foundation's Photon
when using with graphql-yoga?Julien C.
01/20/2020, 10:34 AMTallan Groberg
01/20/2020, 9:22 PMRuhan Khandakar
01/21/2020, 6:31 AMcmpmohan
01/21/2020, 6:53 AMtomhut
01/21/2020, 4:13 PMPraveen
01/21/2020, 4:37 PMid:Int! @id(strategy: SEQUENCE) @sequence(name: "DESK_SEQUENCE", initialValue: 1, allocationSize: 1)
but faced this issue https://github.com/prisma/prisma/issues/4555. I have reverted my changes to id: ID! @id
and did prisma deploy and prisma generate. But still Im getting the error
"exception":"java.sql.SQLException: (conn=4) Incorrect integer value: 'ck5o3fh1i002c0704sq1jtqsw' for column 'id' at row 1"
Am I missing any step here?Arsalan.dev
01/21/2020, 5:01 PMMohammad Javad Ebrahimzadeh
01/23/2020, 12:09 PMhoria.ancas
01/23/2020, 12:56 PMAndré
01/23/2020, 6:44 PMAndré
01/23/2020, 6:44 PMasync login (parent, { data }, { prisma }, info) {
const user = await prisma.query.user({
where: {
email: data.email
}
})
if (!user) throw new Error('User does not exist')
const passwordMatches = await bcrypt.compare(data.password, user.password)
if (!passwordMatches) throw new Error('Invalid credentials')
return { user, token: generateToken(user.id) }
}
André
01/23/2020, 6:46 PMCannot return null for non-nullable field User.restaurants.
André
01/23/2020, 6:48 PMhalborg
01/24/2020, 8:48 AMnpm audit
output, and it seems all of my high
or critical
vulnerabilities comes from Prisma-related packages:Mohammad Javad Ebrahimzadeh
01/24/2020, 11:09 AMprisma deploy
ERROR: No cluster could be found for workspace '*' and cluster 'default'
{
"data": {
"generateClusterToken": null
},
"errors": [
{
"message": "No cluster could be found for workspace '*' and cluster 'default'",
"locations": [
{
"line": 3,
"column": 9
}
],
"path": [
"generateClusterToken"
],
"code": 222
}
],
"status": 200
}
Get in touch if you need help: <https://slack.prisma.io>
To get more detailed output, run $ export DEBUG="*"
(node:15304) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
Brad Slattman
01/24/2020, 3:37 PMBrad Slattman
01/24/2020, 3:39 PMMax
01/27/2020, 1:31 AMElias GM
01/27/2020, 5:30 AMRuhan Khandakar
01/28/2020, 5:49 AMPratik Jaiswal
01/28/2020, 1:56 PM{
"id": 1,
"name": "Client1",
"projects": [
{
"id": 1,
"name": "Project 1"
}
]
}
Mike MacCana
01/29/2020, 1:55 PMEvent
s. Each event
has an owner
which is a Person
. Some events also have a recipient
, which is also a Person
. However I'm not totally sure of the syntax, despite reading the docs. Here's my `schema.prisma`:Mike MacCana
01/29/2020, 1:55 PMMike MacCana
01/29/2020, 4:24 PMPerson
model - so there's a single identity for website visitor, lead, and customer - and seeing prisma.people
is cool.Darko Lacen
01/30/2020, 9:48 AMRMCS
01/31/2020, 7:23 AMconst isLoggedIn = async (resolve: any, parent: any, args: any, ctx: any, info: any)
I would like to specify the types..Phil R
01/31/2020, 4:18 PMPhil R
01/31/2020, 4:19 PM