Skip to content

Error with create nested inside of update #864

Closed
@ymc9

Description

@ymc9

Reported on Discord: https://discord.com/channels/1035538056146595961/1178744879514398842

  61 create(args) {
  62     return __awaiter(this, void 0, void 0, function* () {
  63         args = yield this.preprocessArgs('create', args);
→ 64         const r = yield this.prisma[this.model].create({
               data: {
                 label: "Aaa",
                 commercialAction: {
                   connect: {
                     commercialActionGroupId: "clpccy6xz0000iwt42xlix7i1",
             ?       id?: String,
             ?       AND?: CommercialActionWhereInput | CommercialActionWhereInput[],   
             ?       OR?: CommercialActionWhereInput[],
             ?       NOT?: CommercialActionWhereInput | CommercialActionWhereInput[],   
             ?       createdAt?: DateTimeFilter | DateTime,
             ?       updatedAt?: DateTimeFilter | DateTime,
             ?       label?: StringFilter | String,
             ?       activated?: BoolFilter | Boolean,
             ?       commercialActionGroup?: CommercialActionGroupRelationFilter | CommercialActionGroupWhereInput,
             ?       commercialActionsLabel?: CommercialActionLabelListRelationFilter   
                   }
                 }
               },
               select: {
                 id: true
               }
             })

Argument `connect` of type CommercialActionWhereUniqueInput needs at least one of `id` arguments. Available options are marked with ?.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions