faure
07/30/2018, 9:43 PMfaure
07/30/2018, 9:44 PMJim
07/31/2018, 11:46 AMharmony
07/31/2018, 12:52 PMharmony
07/31/2018, 12:53 PMDarryl
07/31/2018, 2:00 PMDarryl
07/31/2018, 2:03 PMGomah
07/31/2018, 2:04 PM2018-07-31T14:02:15.539Z
is a “String” in your language, but interpreted as a DateTime in your schema; If you use the ISO 8601 format, you should be fine 👍Darryl
07/31/2018, 2:06 PMGomah
07/31/2018, 2:13 PMtoISOString()
?Darryl
07/31/2018, 2:19 PM2018-07-31T14:02:15.539Z object
I guess, as you said, I can use toISOString() to get what I want. Providing this works then, the type of dateOfBirth in my Apollo mutation would be “string” and the type received in the resolver can be DateTime, right?Kien Vo
07/31/2018, 2:40 PMcaptaindaylight
07/31/2018, 2:46 PMtype User {
id: ID! @unique
email: String! @unique
password: String!
trips: [Trip!]! @relation(name: "TripsTraveling")
ownedTrips: [Trip!]! @relation(name: "OwnedTrips")
}
type Trip {
id: ID! @unique
travelers: [User!]! @relation(name: "TripsTraveling")
owner: User! @relation(name: "OwnedTrips")
}
captaindaylight
07/31/2018, 2:47 PMcaptaindaylight
07/31/2018, 2:47 PMERROR: There is a relation ambiguity during the migration. Please first name the old relation on your schema. The ambiguity is on a relation between Trip and User. Please name relations or change the schema in steps.
captaindaylight
07/31/2018, 2:47 PMcaptaindaylight
07/31/2018, 2:48 PMcaptaindaylight
07/31/2018, 2:48 PMcaptaindaylight
07/31/2018, 2:49 PMNick Luger
07/31/2018, 4:34 PMhez
07/31/2018, 6:08 PMconst vehicles = await this.db.query.vehicles({
filter: {
driver_not: null,
},
}, '{vehicleID, driver {driverID}}')
Anthony Fadale
07/31/2018, 6:25 PMZach
07/31/2018, 8:04 PMzonofthor
07/31/2018, 8:42 PMZach
07/31/2018, 8:48 PMhez
07/31/2018, 9:10 PMMr. Bell
07/31/2018, 9:43 PMdocker-compose up -d
I should be able to exec into the running container by running docker-compose exec prisma /bin/bash
which I can but then i can't find the directory where prisma.yml is placed.Mr. Bell
07/31/2018, 9:43 PMMr. Bell
07/31/2018, 9:43 PMbash-4.4# ls
app dev home lib64 mnt proc run srv tmp var
bin etc lib media opt root sbin sys usr
Mr. Bell
07/31/2018, 9:43 PM