Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
by-value
---------
[db][define,project,[title:@string]]
[define,person,[name:@string,project:@project]]
[define,tp,project[title:tinkerpop]]
[insert,projects,tp]
[insert,people,
[person[name:marko, project:tp]
person[name:kuppitz, project:tp]]
[db][values,people]
[has,name,eq,marko]
[value,project]
[insert,lang,java]
by-reference
------------
[db][define,project,[title:@string]]
[define,person,[name:@string,project:@project]]
[define,tp, project[title:tinkerpop]]
[define,tp-ref, ~project[title:tinkerpop]![[db][values,projects][has,title,eq,tinkerpop]]]
[insert,projects,tp,tp-ref]
[insert,people,
[person[name:marko, project:tp-ref]
person[name:kuppitz, project:tp-ref]]
[db][values,people]
[has,name,eq,marko]
[value,project]
[insert,lang,java]
@okram

This comment has been minimized.

Copy link
Owner Author

@okram okram commented Jun 11, 2019

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment