Index: library/mongodb/example-nx-reference-one.tcl =================================================================== diff -u -rc85ca5808548fc506bfc39600bafb8b11ecfac43 -r8f4ba2af8b01697a3aab727a2794cb3b456d6632 --- library/mongodb/example-nx-reference-one.tcl (.../example-nx-reference-one.tcl) (revision c85ca5808548fc506bfc39600bafb8b11ecfac43) +++ library/mongodb/example-nx-reference-one.tcl (.../example-nx-reference-one.tcl) (revision 8f4ba2af8b01697a3aab727a2794cb3b456d6632) @@ -67,7 +67,7 @@ } nx::mongo::Class create Post { :attribute title - :attribute user:embedded,arg=::User + :attribute user:embedded,type=::User } Post insert -title "Hello embedded World" -user [User new -name Smith] @@ -86,7 +86,7 @@ } nx::mongo::Class create Post { :attribute title - :attribute user:reference,arg=::User + :attribute user:reference,type=::User } Post insert -title "Hello referenced World" -user [User new -name Smith] @@ -98,6 +98,10 @@ puts stderr "Content of the collection groups:" Post show +###################################################################### +# Output +###################################################################### + # Content of the collection groups: # { # _id: 4daae48056b77f0e00000000,