Hi guys, I have an issue: I have a piece of code w...
# prisma-whats-new
m
Hi guys, I have an issue: I have a piece of code which used to work just fine and now throws an error:
Copy code
const res = await ctx.db.mutation.updateWall({
      where: { id: wall },
      data: {
        posts: {
          create: {
            text,
            author: {
              connect: {
                id: userId
              },
            },
            image: {
              connect: image
            }
          }
        }
      }
    },  `{
      id
      posts{
        id
      }
    }`)
throws the error:
Copy code
Error: Variable "$_data" got invalid value {"posts":{"create":{"text":"Hello","author":{"connect":{"id":"cjdd86u0kfo8x0122460gymjb"}},"image":{}}}}; Field value.where of required type WallWhereUniqueInput! was not provided.
r
Are you getting this issue after upgrading to Prisma 1.2? Maybe it has something to do with this issue - https://github.com/graphcool/prisma/issues/1909
r
ah I have this too
m
Thanks, I have the exact same issue as you reported. Hope it will be resolved soon. @RaeesaaDid you find a workaround for this?
r
No, I ended up downgrading to previous working version.
r
@Raeesaa I still have the same issue after downgrading, did you just downgrade your global prisma?
r
I downgraded global as well as local prisma. I also had to recreate local prisma cluster
m
@Raeesaa Which version is the latest resillient one? I came from a much older one. Thx!
r
Version that is working for me is 1.1.2
@rick Please check tag of prisma docker image. If it is 1.2, things won't work