cancel
Showing results for 
Search instead for 
Did you mean: 

Join the community at Nodes 2022, our free virtual event on November 16 - 17.

GraphQL - how to filter on custom field

FlexDW
Node

How can you filter a custom field?

Say i have a field in my type definition using @cypher directive:

type Ticket {
id: String
title: String
date: DateTime @cypher(statement: "RETURN datetime(this.timestamp)")
}

Querying this is fine, however, if I try to filter it:

tickets (where: {date_GT: $from_date}) {
title
date
}

I get "date_GT" is not defined by type "TicketWhere"

0 REPLIES 0