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 template functions #15

Closed michaellperry closed 9 years ago

michaellperry commented 9 years ago

When a template function assigns a field a value, convert that pair into a field value condition. For example:

  function tasksInList(l) {
    return {
      type: "Task",
      list: l
    };
  }

Becomes the query S.list F.type="Task".