michaellperry / jinaga

Universal web back-end, offering an application-agnostic API, real-time collaboration, and conflict resolution.
http://jinaga.com
MIT License
35 stars 3 forks source link

Parse field values in proxies #16

Closed michaellperry closed 9 years ago

michaellperry commented 9 years ago

When a template function adds a field value to a proxy, parse the value as a condition. For example:

  function listOfTask(t) {
    t.has("list");
    t.type = "Task";
    return t.list;
  }

Becomes the query: F.type=\"Task\" P.list.