Matt
05/13/2020, 9:10 PMRyan
05/14/2020, 7:27 AMMatt
05/14/2020, 4:39 PMnpx prisma -v
to answer you question. It returned:
@prisma/cli : 2.0.0-beta.1
On my newer version of my software, it's beta.4 so on the stable one I did an npm i
to see if it needed updated. It still shows beta.1
but I can no longer dupe my issue. The table is kind of large but the line in it for the field in question is this:
lead_campaign_id Int @default(4)
I've still got my console up from yesterday so I was able to access the error I got:
Invalid `prisma.lead.create()` invocation:
{
data: {
test_lead: true,
first_name: 'Fakey',
last_name: 'Fakerson',
phone_cell: '<tel:3333333333|333-333-3333>',
marketing_qualified: false,
+ LeadCampaign: {
+ create?: LeadCampaignCreateWithoutLeadInput,
+ connect?: LeadCampaignWhereUniqueInput
+ },
? address_one?: String,
? address_two?: String,
? assessment_complete?: Boolean,
? city?: String,
? email_one?: String,
? email_two?: String,
? gate_code?: String,
? latitude?: String,
? longitude?: String,
? marketing_callable?: Boolean,
? marketing_emailble?: Boolean,
? marketing_tag_collection?: String,
? marketing_textable?: Boolean,
? phone_home?: String,
? stage?: New | Working | Converted | Lost,
? state_abbr?: String,
? zip?: String,
? User?: {
? create?: UserCreateWithoutLeadInput,
? connect?: UserWhereUniqueInput
? },
? Account?: {
? create?: AccountCreateWithoutLeadInput,
? connect?: AccountWhereUniqueInput
? },
? LeadWorkingEventLog?: {
? create?: LeadWorkingEventLogCreateWithoutLeadInput,
? connect?: LeadWorkingEventLogWhereUniqueInput
? }
}
}
Argument LeadCampaign for data.LeadCampaign is missing.
Note: Lines with + are required, lines with ? are optional.