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?Gomah
07/31/2018, 2:25 PMDarryl
07/31/2018, 2:26 PMDarryl
07/31/2018, 2:54 PMtype User @ model {
…
dateOfBirth: DateTime
}
schema.graphql
type Mutation {
updateUser {
...
dateOfBirth: Datetime
}
}
By changing the second (in schema.graphql) to String, it worked.Darryl
07/31/2018, 2:55 PMDarryl
07/31/2018, 2:58 PMDarryl
07/31/2018, 4:09 PMDarryl
07/31/2018, 4:09 PM