David
David
Explore posts from servers
PPrisma
Created by David on 11/4/2024 in #help-and-questions
Argument "columnName" is missing (v5.21.1)
Attempting to run a create query with an unchecked input, but getting a "argument is missing" error. This is the query:
return await transactionClient.tableName.create({
data: {
createdById: 28506,
editedById: 28506,
statusId: 1,
companyProductId: 74,
runPeriodType: "meta",
audienceType: "meta",
destinationType: null,
audienceLocationType: "zipcode",
metaAdSetId: "---",
name: "---",
channelMetaCampaignId: 23,
+ channelMetaCampaign: {
+ create: CampaignChannelMetaCampaignCreateWithoutAdSetsInput | CampaignChannelMetaCampaignUncheckedCreateWithoutAdSetsInput,
+ connectOrCreate: CampaignChannelMetaCampaignCreateOrConnectWithoutAdSetsInput,
+ connect: CampaignChannelMetaCampaignWhereUniqueInput
+ }
},
return await transactionClient.tableName.create({
data: {
createdById: 28506,
editedById: 28506,
statusId: 1,
companyProductId: 74,
runPeriodType: "meta",
audienceType: "meta",
destinationType: null,
audienceLocationType: "zipcode",
metaAdSetId: "---",
name: "---",
channelMetaCampaignId: 23,
+ channelMetaCampaign: {
+ create: CampaignChannelMetaCampaignCreateWithoutAdSetsInput | CampaignChannelMetaCampaignUncheckedCreateWithoutAdSetsInput,
+ connectOrCreate: CampaignChannelMetaCampaignCreateOrConnectWithoutAdSetsInput,
+ connect: CampaignChannelMetaCampaignWhereUniqueInput
+ }
},
So channelMetaCampaignId is defined, yet it is complaining that I should define the checked variant. TypeScript doesn't complain about this, only runtime
3 replies
PPrisma
Created by David on 5/7/2024 in #help-and-questions
Set max execution timeout
Hi, is there a way with Prisma to set a max query execution timeout? I know there isn't really a built-in way, but was hoping there is a workaround available such as running a raw query directly after client initialization?
7 replies