protected internal virtual Request createCollectionRequest (string name, CollectionCreateOptions options) { return(new Request(name(), RequestType .POST, ArangoDBConstants.PATH_API_COLLECTION).setBody(this.executor .Serialize(OptionsBuilder.build(options != null ? options : new CollectionCreateOptions(), name)))); }
/// <summary>Creates a collection</summary> /// <seealso><a href="https://docs.arangodb.com/current/HTTP/Collection/Creating.html#create-collection">API /// * Documentation</a></seealso> /// <param name="name">The name of the collection</param> /// <param name="options">Additional options, can be null</param> /// <returns>information about the collection</returns> /// <exception cref="ArangoDBException"/> /// <exception cref="ArangoDBException"/> public virtual CollectionEntity createCollection(string name, CollectionCreateOptions options) { return(executor.execute(this.createCollectionRequest(name, options), typeof(CollectionEntity))); }