Hi I currently have code which I would like to update if possible to use a single query. This is a query to detect if an item needs updating using the T.id and a timestamp value.
Currently the code gets the id/time stamp from the database and compares in code but I'd like to do as a query for all trh erequested objects.
input: [
{'id': 'id1', 'longTime':
1634757621 }, ....
]
query:
g.V('id1').as('a').select('a').by(T.id).as('id').select('a').choose(__.has('
longTime ',
1634757621 ), constant(false), constant(true)).as('needsUpdate').select('id','needsUpdate')
so what I woudl like is to adapt the query if possible to use the id/timestamps to return id/ifneeds update in one go.
It seems that maybe sack could be used but not having much luck in figuring out how or if it is actually possible