Tag: svelte
-
how to pass date variable to graphQL call in svelte?
1 I have a graphql file with a date in ISO format. I would like to pass a variable instead of hard-coding the date. I would like to use Date.toISOstring() or some get current date method. GRAPHQL FILE let today = Date.toISOString() //or DateNow() query guide { tv { guide(date: "2022-08-10T00:00:00Z <-replace–${today}") { entries {…