Object Graph Navigation

Understanding Object Graphs

Objects in Elements are not flat, but typically represented as hierarchical JSON objects with nested information. Due to internal storage requirements, sometimes those objects are embedded in the object and other times they are tracked internally as references. It takes some special consideration when querying for objects to find the ones you need.

The dot-syntax notation is used to specify nested objects. For example:

foo.bar

Would specify the "bar" field of the following nested object:

{
  "foo" : { 
    "bar" : 42.0,
    "baz" : "Hello"
  }
}

Therefore, to match the example object, the following queries would match the object:

  • foo.bar = 42

  • foo.baz:Hello

  • foo.bar:0 TO 100

Last updated