I noticed that the LocalTime
type in the schema.graphql
file for Shopify Functions is designed primarily for comparing given times and dates. However, it does not include a direct field or method to retrieve the current time.
This limitation poses challenges in scenarios where real-time operations or validations depend on the current time. Adding a new field to the LocalTime
type to fetch the current time directly would greatly enhance functionality and simplify use cases like time-based logic in custom Shopify Functions.