examples/ogx/example/fixture/fixture.yml

20 lines
482 B
YAML

- model: User
rows:
- _id: smith
name: {John Smith}
email: john@smith.com
attrs: { foo: bar, bar: baz }
created_at: '{{ now }}'
updated_at: '{{ now }}'
- _id: doe
name: {Jonh Doe}
email: john@doe.com
created_at: '{{ now }}'
- model: Org
rows:
- name: "{{ $.User.smith.Name.String }}'s Org"
owner_id: '{{ $.User.smith.ID }}'
- name: "{{ $.User.doe.Name.String }}'s Org"
owner_id: '{{ $.User.doe.ID }}'