Tag: datetime
-
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 {…
-
Invalid datetime format. […] The conversion of a nvarchar data type to a datetime data type resulted in an out-of-range value
-1 Here is info about our technical development environment : • .NET 6 • C# 10 • Hasura GraphQL v2.6.2-pro.1 • Micrsoft SQL server 2019 • Visual Studio 2022 • "GraphQL" version="7.3.1" Proxy • "GraphQL.Client" version="5.1.1" Proxy • "GraphQL.Client.Serializer.Newtonsoft" version="5.1.1" Proxy I have application code that Converts integer-based Unix timestamp into a C# DateTimeOffset I…
-
Hasura coversion of date time from date string
0 I have this select query as Native query in Hasura SELECT tblPhOrderSummary.Id as OrderId, tblPhOrderSummary.CreatedOn as OrderDate, tblItems.ItemCode as ItemCode, tblPhOrderProducts.ItemDescription, tblItems.ModelCode AS ModelCode, tblItems.Barcode AS Barcode, tblPhOrderProducts.LOT AS LOT, ” AS Batch, tblPhOrderProducts.Expiry AS Expiry, tblItems.SalesPrice AS UnitSalesPrice, tblPhOrderProducts.Instock AS InStock, tblPhOrderProducts.CurrentStock AS CurrentStock, tblPhOrderProducts.OrderQuantity AS OrderQuantity FROM tblPhOrderProducts INNER JOIN tblItems ON…
-
Python GraphQL query with datetime variables
0 I’m trying to make a post request to a GraphQL API using Python3 and would like some parts of the query to be variables, without doing strange string manipulations with pasting. A good solution was something like this: import requests body = """ query ($first: Int, $occurredAtMin: DateTime){ app(id: "abc123") { events( first: $first…