Last post Jun 05, 2019 01:29 PM by EnenDaveyBoy
Jun 03, 2019 03:13 PM|EnenDaveyBoy|LINK
I ammore used to using entity framework wheremuch is done for you so have a few questions.
I am having trouble finding out how to input a complex model as a graph, eg it starts with a vertex has an edge to an existing vertex and 3 edges to new vertex and the 3 new vertexs.
all the examples i see all add an id manually (which i would prefer not to do), while i know if I don't add one manually it will do so for me, I don't know how i will reference it to run multiple since queries toadd all the elements.
this is because all the examples i find all run single line queries for each element eg a vertex or and edge, is it possible to run one big command which will do do this all together?
Any thoughts would be appriciated
Jun 04, 2019 11:11 AM|PatriceSc|LINK
For something that specific try rather a specialized forum. I see maybe https://stackoverflow.com/questions/29910856/gremlin-add-multiple-vertices-in-single-gremlin-query
(you want to add multiple vertices and read back their id ?)
Jun 04, 2019 12:58 PM|EnenDaveyBoy|LINK
thanks but the issue with that post is the same with all the tinker pop examples, the getting started all show the setup in console or groovey, when you get to the c# examples they turn to var person = g.addV(), why you try and do that in code it doesn't
know what g is, then all the examples all use strings as queries which make the tinker pop examples which link elements useless, then when you do find something which does all you to add them to variables there are issues(which is likely why all the examples
I think I have found a way, i just need to test it, but I wish documentation would be clearer and highlight more ifs and buts.
also have the cosmos db emulator clearly say that the explorer query function doesn't support gremlin would be nice at this time.
Jun 04, 2019 01:45 PM|PatriceSc|LINK
Don't know much about this and I'm rarelly seeing questions about that here. This is why I believe a specialized forum would be much better than a general purpose forum for all kind of most often relational databases...
I assume g is basically your database connection. Not sure about other problems but my basic understanding is that it alllows to build dynamically a graph or objects so more likely you should be able to inspect programmatically an object to navigate to other
IMO try StackOverflow wiht the proper tag or maybe https://groups.google.com/forum/#!forum/gremlin-users to post somewhere where you only have Gremlin users.
Jun 05, 2019 01:29 PM|EnenDaveyBoy|LINK
thanks for the help, would be nice to have a cosmos db forum on here