Gelo
08/10/2021, 11:36 AMRyan
08/10/2021, 11:40 AMwhere: { field: null }
Gelo
08/10/2021, 11:42 AMRyan
08/10/2021, 11:43 AMGelo
08/10/2021, 11:44 AMGelo
08/10/2021, 11:53 AMGelo
08/10/2021, 11:53 AMGelo
08/10/2021, 11:54 AMRyan
08/10/2021, 11:58 AMas const
and check?Gelo
08/10/2021, 12:00 PMGelo
08/10/2021, 12:02 PMRyan
08/10/2021, 12:04 PMHarjaap Singh Makkar
09/01/2021, 12:24 AMType '{ uid: string; status: string | { in: string[]; }; subType: { in: any; }; type: { in: any; }; price: { gte: any; lte: any; }; OR: ({ subject: { contains: any; mode: string; }; marketing?: undefined; province?: undefined; ... 5 more ...; User?: undefined; } | ... 9 more ... | { ...; })[]; timeStamp: { ...; }; User: {...' is not assignable to type 'ListingWhereInput'.
Types of property 'OR' are incompatible.
Type '({ subject: { contains: any; mode: string; }; marketing?: undefined; province?: undefined; city?: undefined; postal?: undefined; subType?: undefined; type?: undefined; address?: undefined; User?: undefined; } | ... 9 more ... | { ...; })[]' is not assignable to type 'Enumerable<ListingWhereInput>'.
Type '({ subject: { contains: any; mode: string; }; marketing?: undefined; province?: undefined; city?: undefined; postal?: undefined; subType?: undefined; type?: undefined; address?: undefined; User?: undefined; } | ... 9 more ... | { ...; })[]' is not assignable to type 'ListingWhereInput[]'.ts(2322)
index.d.ts(2064, 5): The expected type comes from property 'where' which is declared here on type '{ select?: ListingSelect; include?: ListingInclude; where?: ListingWhereInput; orderBy?: Enumerable<ListingOrderByInput>; cursor?: ListingWhereUniqueInput; take?: number; skip?: number; distinct?: Enumerable<...>; }'
Ryan
09/01/2021, 6:18 AMwhere
and see where the error is in your object:
const where: Prisma.ListingWhereInput = {}
And check if your object matches the where
condition properly.Harjaap Singh Makkar
09/01/2021, 6:44 PMHarjaap Singh Makkar
09/01/2021, 7:50 PM