GraphQL returning Dates as strings - how do I get them to return as dates

156 Views Asked by At

Here is my GraphQL Query:

const { result, refetch, loading } = useQuery(gql`
  query {
    users {
      id
      firstName
      lastName
      createDate
    }
  }
`);

The createDate is coming back as a string. How do I get it to return as a Date?

0

There are 0 best solutions below