11//
22// DISCLAIMER
33//
4- // Copyright 2020-2024 ArangoDB GmbH, Cologne, Germany
4+ // Copyright 2020-2025 ArangoDB GmbH, Cologne, Germany
55//
66// Licensed under the Apache License, Version 2.0 (the "License");
77// you may not use this file except in compliance with the License.
@@ -36,13 +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
3940 CreateDocument (ctx context.Context , document interface {}) (CollectionDocumentCreateResponse , error )
4041
4142 // CreateDocumentWithOptions creates a single document in the collection.
4243 // The document data is loaded from the given document, the document metadata is returned.
4344 // If the document data already contains a `_key` field, this will be used as key of the new document,
4445 // otherwise a unique key is created.
4546 // 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
4648 CreateDocumentWithOptions (ctx context.Context , document interface {}, options * CollectionDocumentCreateOptions ) (CollectionDocumentCreateResponse , error )
4749
4850 // CreateDocuments creates multiple documents in the collection.
@@ -55,6 +57,7 @@ type CollectionDocumentCreate interface {
5557 // a slice with the same number of entries as the `documents` slice.
5658 // To wait until document has been synced to disk, prepare a context with `WithWaitForSync`.
5759 // 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
5861 CreateDocuments (ctx context.Context , documents interface {}) (CollectionDocumentCreateResponseReader , error )
5962
6063 // CreateDocumentsWithOptions creates multiple documents in the collection.
@@ -67,6 +70,7 @@ type CollectionDocumentCreate interface {
6770 // a slice with the same number of entries as the `documents` slice.
6871 // To wait until document has been synced to disk, prepare a context with `WithWaitForSync`.
6972 // 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
7074 CreateDocumentsWithOptions (ctx context.Context , documents interface {}, opts * CollectionDocumentCreateOptions ) (CollectionDocumentCreateResponseReader , error )
7175}
7276
0 commit comments