[Developers] implicit connect directives in mqlwrite operations (pt2)

Augusto Callejas acallejas at appliedminds.com
Wed Jul 2 00:18:44 UTC 2008


hi-

can someone step through the execution order of this write operation?
is a write operation executed from leaf node to root node?

my questions also include what properties are checked to see if an object
already exists (in the "unless_exists" case, does it only check value
properties and not object properties?).

also, the middle mql object "/people/marriage" says create a new object
unless one already exists and is connected.  in the existence check, does
that include the value of the property "spouse"?  what seems to happen is if
there isn't such an object, it creates it and connects it to the
"/people/person" = "Augustus", using an apparent implicit connect directive.

====
{
  "create" : "unless_exists",
  "name" : "Augusto Callejas",
  "spouse_s" : {
    "create" : "unless_connected",
    "spouse" : {
      "name" : "Augustus",
      "type" : "/people/person"
    },
    "type" : "/people/marriage"
  },
  "type" : "/people/person"
}
====

thanks,
augusto.




More information about the Developers mailing list