How can you retrieve a date field in Apollo Client from a query as a Date and not a string?

前端 未结 0 425
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-07 15:52

Using the following graphql:

scalar Date

type MyModel {
  id: ID!
  date: Date!
}

query MyModels {
  myModels {
    id
    date
  }
}

type Query {
  myModel: [         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题