Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with create nested inside of update #864

Closed
ymc9 opened this issue Nov 29, 2023 · 0 comments · Fixed by #865
Closed

Error with create nested inside of update #864

ymc9 opened this issue Nov 29, 2023 · 0 comments · Fixed by #865
Milestone

Comments

@ymc9
Copy link
Member

ymc9 commented Nov 29, 2023

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 ?.
@ymc9 ymc9 added this to the v1.4.0 milestone Nov 29, 2023
@ymc9 ymc9 closed this as completed Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant