I can't seem to find how to manage DateTime field in prisma 2 to node express-graphql app. If I set the field type to string in graphql.schema it just changes the value to fit the 32 bit representation. What are the options? I insert the datetime into the database with moment().toDate()
Follow this part and create a Date scalar so that you can pass it directly as:
input Something {
value: Date
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.