@@ -36,15 +36,15 @@ type CollectionDocumentCreate interface {
3636 // If the document data already contains a `_key` field, this will be used as key of the new document,
3737 // otherwise a unique key is created.
3838 // A ConflictError is returned when a `_key` field contains a duplicate key, other any other field violates an index constraint.
39- // SmartGraphs and Enterprise Graphs cannot use existing collections and cannot use the document interface
39+ // SmartGraphs and EnterpriseGraphs cannot use existing collections and cannot use the document interface
4040 CreateDocument (ctx context.Context , document interface {}) (CollectionDocumentCreateResponse , error )
4141
4242 // CreateDocumentWithOptions creates a single document in the collection.
4343 // The document data is loaded from the given document, the document metadata is returned.
4444 // If the document data already contains a `_key` field, this will be used as key of the new document,
4545 // otherwise a unique key is created.
4646 // A ConflictError is returned when a `_key` field contains a duplicate key, other any other field violates an index constraint.
47- // SmartGraphs and Enterprise Graphs cannot use existing collections and cannot use the document interface
47+ // SmartGraphs and EnterpriseGraphs cannot use existing collections and cannot use the document interface
4848 CreateDocumentWithOptions (ctx context.Context , document interface {}, options * CollectionDocumentCreateOptions ) (CollectionDocumentCreateResponse , error )
4949
5050 // CreateDocuments creates multiple documents in the collection.
@@ -53,11 +53,8 @@ type CollectionDocumentCreate interface {
5353 // otherwise a unique key is created.
5454 // If a documents element contains a `_key` field with a duplicate key, other any other field violates an index constraint,
5555 // a ConflictError is returned in its indeed in the errors slice.
56- // To return the NEW documents, prepare a context with `WithReturnNew`. The data argument passed to `WithReturnNew` must be
57- // a slice with the same number of entries as the `documents` slice.
58- // To wait until document has been synced to disk, prepare a context with `WithWaitForSync`.
5956 // If the create request itself fails or one of the arguments is invalid, an error is returned.
60- // SmartGraphs and Enterprise Graphs cannot use existing collections and cannot use the document interface
57+ // SmartGraphs and EnterpriseGraphs cannot use existing collections and cannot use the document interface
6158 CreateDocuments (ctx context.Context , documents interface {}) (CollectionDocumentCreateResponseReader , error )
6259
6360 // CreateDocumentsWithOptions creates multiple documents in the collection.
@@ -66,11 +63,8 @@ type CollectionDocumentCreate interface {
6663 // otherwise a unique key is created.
6764 // If a documents element contains a `_key` field with a duplicate key, other any other field violates an index constraint,
6865 // a ConflictError is returned in its indeed in the errors slice.
69- // To return the NEW documents, prepare a context with `WithReturnNew`. The data argument passed to `WithReturnNew` must be
70- // a slice with the same number of entries as the `documents` slice.
71- // To wait until document has been synced to disk, prepare a context with `WithWaitForSync`.
7266 // If the create request itself fails or one of the arguments is invalid, an error is returned.
73- // SmartGraphs and Enterprise Graphs cannot use existing collections and cannot use the document interface
67+ // SmartGraphs and EnterpriseGraphs cannot use existing collections and cannot use the document interface
7468 CreateDocumentsWithOptions (ctx context.Context , documents interface {}, opts * CollectionDocumentCreateOptions ) (CollectionDocumentCreateResponseReader , error )
7569}
7670
0 commit comments