File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,7 +24,8 @@ module.exports = class Node extends PropertyContainer
2424 super db, data
2525
2626 #
27- # Return a string representation of this node.
27+ # Return a human-readable string representation of this node,
28+ # suitable for development purposes (e.g. debugging).
2829 #
2930 # @return {String}
3031 #
Original file line number Diff line number Diff line change @@ -57,6 +57,17 @@ module.exports = class Relationship extends PropertyContainer
5757
5858 ### Methods: ###
5959
60+ #
61+ # Return a human-readable string representation of this relationship,
62+ # suitable for development purposes (e.g. debugging).
63+ #
64+ # @return {String}
65+ #
66+ toString : ->
67+ # this library has no notion of unsaved relationships,
68+ # so assume this relationship has an id:
69+ " relationship @#{ @id } (#{ @type } )"
70+
6071 #
6172 # Persist or update this relationship in the database. "Returns" (via
6273 # callback) this same instance after the save.
You can’t perform that action at this time.
0 commit comments