cancel
Showing results for 
Search instead for 
Did you mean: 

datetime Field gives an empty array

AV
Node
I want to query data using GraphQL in the Apollo sandbox which is connected to the neo4j database. As per the neo4jGraphql library, there is a temporal type DateTime.

My Query:
query Abc {
  abc(where: { createdDate: "2022-07-14T00:00:00Z" }) {
    name
  }
}
In my schema, I have declared createdDate as DateTime and when I query it, it gives an empty array. Why so?
But if I declare it as a string, I am able to get the name.
 
I want to query it based on datetime to select data within some DateTime range.
Could anyone please help me with this?
0 REPLIES 0
Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

On November 16 and 17 for 24 hours across all timezones, you’ll learn about best practices for beginners and experts alike.