Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Latest commit

 

History

History
41 lines (30 loc) · 817 Bytes

time-picker.md

File metadata and controls

41 lines (30 loc) · 817 Bytes

Time Picker Field

The Time Picker field is added to the WPGraphQL Schema as field with the Type String.

Time Picker fields can be queried and a String will be returned.

Here, we have a Time Picker field named time_picker on the Post Edit screen within the "ACF Docs" Field Group, and "12:30 am" is the value.

Time Picker field in the Edit Post screen

This field can be queried in GraphQL like so:

{
  post(id: "acf-example-test", idType: URI) {
    acfDocs {
      timePicker
    }
  }
}

and the result of the query would be:

{
  "data": {
    "post": {
      "acfDocs": {
        "timePicker": "12:30 am"
      }
    }
  }
}