nilan
08/15/2018, 1:01 PMBenoit Ranque
08/15/2018, 1:39 PMBenoit Ranque
08/15/2018, 1:40 PMBenoit Ranque
08/15/2018, 1:40 PMBenoit Ranque
08/15/2018, 1:40 PMMoritz
08/15/2018, 1:41 PMmarkus
08/15/2018, 3:08 PMpgRelation
at once through Graphql 😅 (The datamodel is created through introspect
) .
I’m not sure if this is a know issue or if I should create a ticket? I tried with prisma:1.15-alpha
as well but no luck. Would be happy with a workaround for now, as the alternative is going back to PostGraphile for the time being 🙂Benoit Ranque
08/15/2018, 3:27 PMjs
const Employee = {
report: {
fragment: `fragment EmployeeId on Employee { id }`,
async resolve (obj, args, ctx, info) {
console.log(obj) // does not have the id property
return [] // dummy data
}
}
}
weakky
08/15/2018, 4:29 PMckelley
08/15/2018, 6:02 PMsteve
08/15/2018, 6:46 PMsteve
08/15/2018, 6:47 PMsteve
08/15/2018, 6:48 PMMike
08/15/2018, 7:29 PMMike
08/15/2018, 7:33 PMCCBCodeMonkey
08/16/2018, 3:43 AMCCBCodeMonkey
08/16/2018, 3:43 AMCCBCodeMonkey
08/16/2018, 3:43 AMCCBCodeMonkey
08/16/2018, 3:43 AMCCBCodeMonkey
08/16/2018, 3:44 AMsrc/generated/
CCBCodeMonkey
08/16/2018, 3:48 AMCCBCodeMonkey
08/16/2018, 4:24 AMCCBCodeMonkey
08/16/2018, 4:24 AMCCBCodeMonkey
08/16/2018, 4:24 AMCCBCodeMonkey
08/16/2018, 4:25 AMposts: (_, args, context, info) => {
return context.prisma.query.posts(
{
where: {
OR: [
{ title_contains: args.searchString },
{ content_contains: args.searchString },
],
},
},
info,
)
},
CCBCodeMonkey
08/16/2018, 4:25 AMCCBCodeMonkey
08/16/2018, 4:25 AMCCBCodeMonkey
08/16/2018, 4:25 AM"Variable \"$_v0_where\" got invalid value {\"OR\":[{\"title_contains\":\"yo\"},{\"description_contains\":\"yo\"}]}; Field \"OR\" is not defined by type PaperWhereUniqueInput."
Kristof
08/16/2018, 5:35 AMKristof
08/16/2018, 5:35 AM