Prisma: according to the docs, `set` should overri...
# prisma-whats-new
v
Prisma: according to the docs,
set
should override an existing list with an entirely new list. Does this work on relationships, as well? It doesn't seem to be working for me:
Copy code
ctx.db.mutation.updateRequest(
      {
        where: { id },
        data: {
          title,
          description,
          fields: {
            set: [...fields]
          }
        }
      },
      info
    );
Field "set" is not defined by type FieldUpdateManyInput at value.fields; did you mean upsert?
d
Currently this is not supported for relations. But there is a proposal along those lines. https://github.com/graphcool/prisma/issues/2036