Hi, simple question, how to do a new DateTime in m...
# prisma-whats-new
a
Hi, simple question, how to do a new DateTime in mutation? (in playground) similar to js new Date()
i
DateTime is taken care of for you by GC
But you can override it
a
Thanks @iamclaytonray , if i have a createPost in a mutation in playground and want to insert a timestamp, how do I do it other than using the createdBy?
i
If you have
timestamp: DateTime!
on your Post type…
Copy code
mutation {
  createUser(
    timestamp: "2015-11-22T13:57:31.123Z"
  ) {
    id
    timestamp
  }
}
Check out the Scalar types from Graphcool for more info:
a
Thanks @iamclaytonray