For more information on the available options, see:
FileType.Node or FileType.Edge
Payload to pass to node-fetch
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()
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
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
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
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
Create a File by ID (e.g., previously uploaded) for use with Datasets