From 691af0249a469a20c827aa4ac16cb455efde140b Mon Sep 17 00:00:00 2001 From: An Duong Date: Tue, 28 Nov 2023 16:04:46 -0500 Subject: [PATCH] Fix import error --- prisma/schema.prisma | 10 ++++++---- schema.graphql | 1 + src/@generated/graphql/models/Airport.ts | 3 --- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 64440fb..5347a15 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -116,10 +116,12 @@ model Airport { latitude Float longitude Float - Country Country @relation(fields: [countryCode], references: [isoCode]) - DepartureFlights Flight[] @relation(name: "DepartureFlights") - ArrivalFlights Flight[] @relation(name: "ArrivalFlights") - AirportWeather AirportWeather[] + Country Country @relation(fields: [countryCode], references: [isoCode]) + DepartureFlights Flight[] @relation(name: "DepartureFlights") + ArrivalFlights Flight[] @relation(name: "ArrivalFlights") + + //@skip + AirportWeather AirportWeather[] @@unique([iata]) } diff --git a/schema.graphql b/schema.graphql index cd4a37b..7cdc931 100644 --- a/schema.graphql +++ b/schema.graphql @@ -90,6 +90,7 @@ type AirportTsaWaitTime { } type AirportWeather { + Airport: Airport! airTemperatureCelsius: Int! airportIata: String! createdAt: DateTimeISO! diff --git a/src/@generated/graphql/models/Airport.ts b/src/@generated/graphql/models/Airport.ts index 78e8e0f..0ccc6ec 100644 --- a/src/@generated/graphql/models/Airport.ts +++ b/src/@generated/graphql/models/Airport.ts @@ -53,8 +53,5 @@ export class GQL_Airport { @Field(() => [GQL_Flight]) ArrivalFlights: GQL_Flight[]; - @Field(() => [GQL_AirportWeather]) - AirportWeather: GQL_AirportWeather[]; - // skip overwrite 👇 }