@@ -36,15 +36,15 @@ type CollectionDocumentCreate interface {
36
36
// If the document data already contains a `_key` field, this will be used as key of the new document,
37
37
// otherwise a unique key is created.
38
38
// 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
40
40
CreateDocument (ctx context.Context , document interface {}) (CollectionDocumentCreateResponse , error )
41
41
42
42
// CreateDocumentWithOptions creates a single document in the collection.
43
43
// The document data is loaded from the given document, the document metadata is returned.
44
44
// If the document data already contains a `_key` field, this will be used as key of the new document,
45
45
// otherwise a unique key is created.
46
46
// 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
48
48
CreateDocumentWithOptions (ctx context.Context , document interface {}, options * CollectionDocumentCreateOptions ) (CollectionDocumentCreateResponse , error )
49
49
50
50
// CreateDocuments creates multiple documents in the collection.
@@ -53,11 +53,8 @@ type CollectionDocumentCreate interface {
53
53
// otherwise a unique key is created.
54
54
// If a documents element contains a `_key` field with a duplicate key, other any other field violates an index constraint,
55
55
// 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`.
59
56
// 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
61
58
CreateDocuments (ctx context.Context , documents interface {}) (CollectionDocumentCreateResponseReader , error )
62
59
63
60
// CreateDocumentsWithOptions creates multiple documents in the collection.
@@ -66,11 +63,8 @@ type CollectionDocumentCreate interface {
66
63
// otherwise a unique key is created.
67
64
// If a documents element contains a `_key` field with a duplicate key, other any other field violates an index constraint,
68
65
// 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`.
72
66
// 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
74
68
CreateDocumentsWithOptions (ctx context.Context , documents interface {}, opts * CollectionDocumentCreateOptions ) (CollectionDocumentCreateResponseReader , error )
75
69
}
76
70
0 commit comments