addContext
Adds a new subdocument and its context to the current data, returning a new instance with the updated mapping.
Note that this does not modify the graph; the new subdocument must already be part of it.
Return
a new instance of SubdocumentsData with the updated mapping
Parameters
subdocument
the subdocument to add
context
the context the subdocument is processed with