Hey :wave: I just want to say up front that I've ...
# orm-help
b
Hey 👋 I just want to say up front that I've got good programmer karma points stored up, been a while since I begged the internet for help, but I'm having trouble figuring this out and I'm brand new to Prisma and trying to figure out queries. Given the following call made from my GraphQL / Prisma backend, I'm looking to query
{parent: String}
. Anything non-
null
will work here,
String
isn't accepted, complains about wanting an object. So, it's not types. I also tried
{ parent_not: null }
with no luck. Sorry for the beginner question, can't find this in the docs.
Copy code
const children = await ctx.db.query.comments(
      {
        where: { AND: [{ isPublic: true }, { parent: String }] },
        orderBy: 'createdAt_DESC'
      },
      info
    )