See examples at top of file
Create a new File object for uploading or use with Dataset
For more information on the available options, see:
FileType.Node or FileType.Edge
Payload to pass to node-fetch. Use TypedArrays such as Uint8Array for binary data such as arrow
File format to use, e.g. 'json', 'csv', 'arrow', 'parquet', 'orc', 'xls'
Name of the file to use, e.g. 'my-file'
JSON post body options to use in createFile()
URL options to use in uploadData()
See examples at top of file
Helper function to create the file on the server but not yet upload its data
By default, this will skip recreating files that have already been created.
Client object to use for uploading
If true, will force creation of a new ID even if file has already been uploaded
See examples at top of file
Populate data for later uploading if it wasn't set during construction
Cannot run this function if the file has already been uploaded
Overwrites any existing data
Data to use for uploading
See examples at top of file
Upload curent File object to the server
By default, this will skip reuploading files that have already been uploaded.
Client object to use for uploading
If true, will force upload even if file has already been uploaded
Promise that resolves to the uploaded File object when it completes uploading
See examples at top of file
Helper function to upload the data to the server
By default, this will skip reuploading data that has already been uploaded.
Client object to use for uploading
If true, will force upload even if file has already been uploaded
File examples
File objects are used for uploading data and then reusing as part of Dataset graph visualizations
Powerfully, the same file may be reused in multiple Datasets, so many variants can be made cheaply and quickly.
For configuring supported file formats, see https://hub.graphistry.com/docs/api/2/rest/files/ .
Upload an EdgeFile from a JSON object in a columnar form
Upload an EdgeFile from a JSON object in a row-oriented form
Upload an EdgeFile using promises
Upload a NodeFile from a JSON object
Upload a NodeFile from an Apache Arrow Table
Create a File by ID (e.g., previously uploaded) for use with Datasets