Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
Fix import error
Browse files Browse the repository at this point in the history
  • Loading branch information
anduong96 committed Nov 28, 2023
1 parent bcde1e0 commit 691af02
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 6 additions & 4 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -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])
}
Expand Down
1 change: 1 addition & 0 deletions schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ type AirportTsaWaitTime {
}

type AirportWeather {
Airport: Airport!
airTemperatureCelsius: Int!
airportIata: String!
createdAt: DateTimeISO!
Expand Down
3 changes: 0 additions & 3 deletions src/@generated/graphql/models/Airport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,5 @@ export class GQL_Airport {
@Field(() => [GQL_Flight])
ArrivalFlights: GQL_Flight[];

@Field(() => [GQL_AirportWeather])
AirportWeather: GQL_AirportWeather[];

// skip overwrite 👇
}

0 comments on commit 691af02

Please sign in to comment.