preetjdp / YouOweMe

Making it simpler to track those chillars
9 stars 6 forks source link

[BUG] Timestamp not working with Flutter #9

Closed preetjdp closed 4 years ago

preetjdp commented 4 years ago

Describe the bug The Timestamp scalar used in Graphql does not Transpile to dart DateTime. https://github.com/preetjdp/YouOweMe/blob/06ee69adc378c0b6c2bfc7a1cbc1bc5fe63e2953/server/src/schema.ts#L12

To Reproduce Steps to reproduce the behavior: Just use any query with the Artemis Generator to look at find build_runner errors.

query {
  getUsers {
    id
    name
    created
  }
}

Expected behavior The Timestamp should be converted to DateTime

Describe the idea / solution you'd like Implement / or find a custom scalar map as mentioned here on pub.