How do you properly use the where clause?
cwoodland opened this issue · 6 comments
How do you properly use the where clause?
And when will a 1.0 be out for this project??
Thanks
@cwoodland Although I haven't finished the documentation yet, the unit tests are stable. Take a look at the unit test for the where step.
The 'where' step can take one of two inputs: a sub-query or a predicate. A sub-query is created by calling the CreateSubQuery()
method on the base traversal (the traversal just before you add the where
step). Using the official TinkerPop documentation, the predicate approach covers cases 1 and 2 in the official example (I lumped the side effect in with the predicate in this case) while CreateSubQuery()
covers the third official example.
I've been testing out this project in a proprietary project I am working on; I plan on closing out the last few bugs and rolling to V1.0 this weekend (23-24 June 2018).
I hope you find this project useful!
This project is awesome and I really appreciate your feedback.
I will be in touch as I continue to use it.
@cwoodland I've just cleaned up the documentation. All tests are passing via AppVeyor so I think I'm ready for a V1.0 release. Were you able to get the where
clause working?
@cwoodland Also, I'm not sure when you forked the repo but I've merged in a refactoring pull request a few weeks ago. The traversals didn't change, some of the namespaces did though. It cleaned up the .NET Core and .NET Framework client implementations for Azure CosmosDB
EDIT: It looks like you forked in the last day; you should have the latest code. The only change in the last 24 hours was documentation via the readme files.
Thanks so much for the heads up!
I am new to gremlins , so I am going to ask one more dumb question.
I looked through the unit tests for update examples, but didn't see any.
Do you have any examples of update statements using the lib?
Thanks