MuhammadTahaNaveed commented on PR #1516:
URL: https://github.com/apache/age/pull/1516#issuecomment-1910060112

   > Is properties @>> {school:{addr:{city:'Toronto'}}} different from 
properties = {school:{addr:{city:'Toronto'}}}?
   
   Yes. So for example we consider a node has `properties = {name:'xyz', 
object:{key:{nestedkey:'nested value'}}, list:[1,2,3]}`
   
   So if we query `MATCH (n ={list:[1,2,3]})`
   
   - `properties @>> {list:[1,2,3]}` will check if the original properties 
contain a key `list`, and then if the value for that key is equal to the one in 
original properties.
   
   - While `properties = {list:[1,2,3]}` would check that if the whole 
properties object i.e. `{name:'xyz', object:{key:{nestedkey:'nested value'}}, 
list:[1,2,3]}` is equal to `{list:[1,2,3]}`
   
   I hope it explains.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to