I read through the CSV loader documentation, and saw a great example of it being used in GSQL 101. But it left some questions open for me. For example, say I have two vertex types which do have edges between them.
Maybe: Person -> Car or something like that. How can you, or can you, use the CSV loader for that inside of GSQL? Or does this have to be manually performed with the GUI?
A small example or pseudo code of the CSV headers used would be extremely helpful - if this is possible.
So, here’s a hacky but handy way to find out what GS is doing.
First, do the thing you want in graph studio.
Then export the solution to your local drive.
Then expand it and look inside, you’ll find all sorts of things, but one of them contains all the loading job definitions for whatever crafty idea you have had.
It also has the schema definition scripts which is what we usually use it for.
Thanks for the example and the advice. I don’t have access to the GUI (running TG headless on a VM because my OS is unsupported). I’ll just have to tinker with it I guess, but in general it looks possible to do at least. For now thats the major concern.
I was able to make a work around by creating loading jobs via the vertex types of the edges. Not ideal, but, it’s off the ground. I’d still love to hear of other solutions/suggestions to this problem.