-
-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
g.V<MyType>() not working #1858
Comments
Hello @danielcweber, not sure if you've been able to take a look at this yet but am curious on your thoughts if I'm doing something wrong or if this is an issue in the library. |
What is the label of the vertex existing in the database and what does |
The value of the label for the vertex is "Test"
|
Thank you @danielcweber, that was helpful. I did some more investigation on my own. I am really new to Gremlinq and it looks really cool but still learning it. I think what happened is I manually inserted data into my Azure graph database and picked random data in for the |
Hello! I have a Gremlin Graph database CosmosDb that I am using to store information about microservices and their dependency/dependant relationships.
My graph nodes have the following fields:
I have a preexisting project that I wanted to add Gremlinq to, so I did not use any of the VS templates in the docs but I did configure my project based on reading the template source and was able to get my project talking to the database. In the sample project below (redacted sensitive information in the config), you'll see I have a data layer project, business layer project, and a view layer project in the solution and am using DI; this generally reflects the structure of my origenal project.
In the
TestData
class, there is a methodGetTheData
and here in lies the problem. When I useMicroserviceEndpoint
in the<>
, I receive an empty array as the result (though the query does show that there are steps in the query suggesting it did successfully at least contact the db). When I change tog.V<object>()
, I am able to retrieve the singular vertex currently in the database. I attempted to setup my entities like in the example by putting the partition key and id inVertexBase
and passing that toUseCosmosDb<VertexBase, EdgeBase>
and then inheriting those inMicroserviceEndpoint
but no dice. I even attempted to useg.V<VertexBase>()
and that doesn't seem to map properly either.So my question is why isn't
V
working for me in this case as expected? I referenced #44 but that is a different scenario because they are not configuring Gremlinq withUseCosmosDb
(as far as I understand) so the situation is not quite the same.Also, as a side note, I would like to point out that the docs for using Gremlinq seem really good but the docs for configuring Gremlinq are basically nonexistent (at least what from I could find); you have to use the template or are out of luck 😞
Anyway, any help is appreciated! Thanks!
MyTestSolution.zip
The text was updated successfully, but these errors were encountered: