Requirement:
Check if the import-data url param ends with .gremlin.
If no to .gremlin extension, ignore
If Yes to .gremlin extension, ask "If you want to import data from xyz source".
If no from user to import, remove the import-data param from URL, to avoid any accidental re-import request.
If yes from user to import, read the file, make a query to the backend, remove the import-data param from URL. Show successfully imported data
https://graph-explorer.herokuapp.com/explorer?import-data=http://raw.github.com/invanalabs/graph-explorer/example-file.gremlin
Requirement: Check if the import-data url param ends with
.gremlin
. If no to .gremlin extension, ignore If Yes to .gremlin extension, ask "If you want to import data from xyz source". If no from user to import, remove the import-data param from URL, to avoid any accidental re-import request. If yes from user to import, read the file, make a query to the backend, remove the import-data param from URL. Show successfully imported data