Skip to content

Instantly share code, notes, and snippets.

@zindel
Last active February 11, 2016 09:34
Show Gist options
  • Save zindel/dd418ea5839447b86ba6 to your computer and use it in GitHub Desktop.
Save zindel/dd418ea5839447b86ba6 to your computer and use it in GitHub Desktop.
use-query:
title: Using Query
type: edit
entity: individual
input:
- individual
fields:
- identity.fullname
- identity.birthdate
- sex
query: |
/do(
$_individual := update(individual[$individual]{id(),
sex := $sex,
}),
with($identity, merge(identity := {
individual := $individual,
fullname := $fullname,
birthdate := $birthdate,
})),
{id := $_individual}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment