protected internal virtual Request insertVertexRequest < T>(T value, VertexCreateOptions options) { Request request = new Request (this.db, RequestType.POST, this.executor.createPath(ArangoDBConstants .PATH_API_GHARIAL, this.graph, ArangoDBConstants.VERTEX, name) ); VertexCreateOptions @params = options != null ? options : new VertexCreateOptions(); request.putQueryParam(ArangoDBConstants.WAIT_FOR_SYNC, @params .getWaitForSync()); request.setBody(this.executor.Serialize(value)); return(request); }
/// <summary>Creates a new vertex in the collection</summary> /// <seealso><a href="https://docs.arangodb.com/current/HTTP/Gharial/Vertices.html#create-a-vertex">API Documentation</a> /// </seealso> /// <param name="value">A representation of a single vertex (POJO, VPackSlice or String for Json) /// </param> /// <param name="options">Additional options, can be null</param> /// <returns>information about the vertex</returns> /// <exception cref="ArangoDBException"/> /// <exception cref="ArangoDBException"/> public virtual VertexEntity insertVertex <T>(T value, VertexCreateOptions options) { return(this.executor.execute(this.insertVertexRequest(value, options), this.insertVertexResponseDeserializer (value))); }