Chung Tran
04/12/2020, 9:08 AMTaylor
04/12/2020, 1:14 PMTaylor
04/12/2020, 1:15 PMTaylor
04/12/2020, 1:15 PMTaylor
04/12/2020, 1:20 PMTaylor
04/12/2020, 5:34 PMAdriano Resende
04/13/2020, 5:08 AMRain
04/13/2020, 8:06 AM"message": "\nInvalid `prisma.user.findOne()` invocation in\n/app/dist/src/user/user.service.js:31:40\n\nspawn /app/node_modules/@prisma/client/runtime/query-engine-debian-openssl-1.1.x ENOENT"
I added debian-openssl-1.1.x
to my binaryTargets
and already ran npx prisma generate
terion
04/13/2020, 2:04 PMInvalid input "on Query\n}", expected FragmentName, TypeCondition or Directives
on simple unique query, like this
await ctx.prisma.query.survey({where: {id: id}})
Logs here: https://github.com/prisma/prisma/issues/2174
Has anyone see smth like this before? Any ideas?hanwool
04/13/2020, 2:27 PMNicola Nardella
04/13/2020, 2:34 PMgraphql-nextjs
example?Mario Jimenez
04/13/2020, 2:34 PMprisma
with the .env
file that my project is using instead of the .env
that lives in the prisma
dir?Raluca Fleseriu
04/13/2020, 4:19 PM{
windTurbines(
where: { id: "ck6kkbz5r00ms0804tc1oz05f"}
)
{
id
users {name}
}
}
{
"data": {
"windTurbines": [
{
"id": "ck6kkbz5r00ms0804tc1oz05f",
"users": null
}
]
},
"errors": [
{
"message": "Whoops. Looks like an internal server error. Search your server logs for request ID: local:ck8yokfr43lg90738p9zxaviv",
"path": [
"windTurbines",
0,
"users"
],
"locations": [
{
"line": 4,
"column": 5
}
],
"requestId": "local:ck8yokfr43lg90738p9zxaviv"
}
]
}
How can I fix this?
Notes:
• No realtion table is created in postgres db
• Tried also adding l
windTurbines: WindTurbine! @relation(link:TABLE, name: "UsersWindTurbines")
type UsersWindTurbines @relationTable {
user: User!
windTurbine: WindTurbine!
}Ervin
04/13/2020, 4:48 PMRashmi Bidanta
04/13/2020, 9:50 PMrein
04/14/2020, 9:08 AM@prisma/client
) as rootTypings for nexus@next? Right now, Nexus doesn't handle interfaces and subtypes without having an explicit rootType present.Dimitri Ivashchuk
04/14/2020, 10:04 AMsash
04/14/2020, 11:31 AMprisma reset
in prisma2?Sijad
04/14/2020, 4:46 PMcount
using prisma2?Sijad
04/14/2020, 4:49 PMcount
of the realtion using findMany
martin
04/14/2020, 5:52 PMVince Biro
04/15/2020, 12:00 PMreturn ctx.prisma.post.findMany({
where: {
OR: [
{
title: {
contains: searchString,
},
},
{
content: {
contains: searchString,
},
},
],
},
})
Umar Ali Khan
04/15/2020, 1:07 PMwindkomo
04/15/2020, 2:18 PMJames Homer
04/15/2020, 5:12 PMJames Homer
04/15/2020, 5:12 PMMissing type WorkspaceUser, did you forget to import a type to the root query or mean Workspace?
James Homer
04/15/2020, 5:12 PMMissing type UserWhereInput, did you forget to import a type to the root query?
Alosies
04/15/2020, 5:15 PMimport { prisma } from '../../../../prisma-client'
realTimeQuizInstance: {
subscribe: async (parent, args, ctx, info) => {
return prisma.$subscribe.realTimeQuizInstance({}, info)
},
resolve (payload, args, ctx, info) {
return payload;
}
}
My subscription
subscription RTQInstanceSubscription($where: RealTimeQuizInstanceSubscriptionWhereInput) {
realTimeQuizInstance(where: $where) {
mutation
node {
id
currentQuestionIndex
quizAttempts(orderBy: score_DESC, first: 10){
score
user{
fullName
picture_large
customPictureUrl
}
}
}
}
}
The result
{
"data": {
"realTimeQuizInstance": {
"mutation": "UPDATED",
"node": {
"id": "xxxxxxx",
"currentQuestionIndex": 4,
"quizAttempts": null
}
}
}
}
I'm getting null
for quizAttempts
. How do I get the nested fields? I have been searching and trying to resolve this for more than a day now. Any help is highly appreciated.James Homer
04/15/2020, 5:53 PMJames Homer
04/15/2020, 5:56 PM