Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gremlin query - Apache TinkerPop - HelloWorld execution example #5

Open
authorjapps opened this issue Sep 27, 2018 · 1 comment
Open

Comments

@authorjapps
Copy link
Owner

authorjapps commented Sep 27, 2018

@mailtoach79 to put an example i.e. a Step executing gremlin query.
Either via a string body or via $PATH:<path_to_file>

This is already supported by the framework. 馃憤

But if a specialized place-holder needed like below-
e.g. $GREMLIN.QUERY.FILE:<path to file>, then it has to be created.
(Please raise an issue for this if needed)

Mr Uma has to suggest !

The final example will look like below-

{
    "scenarioName": "Gremlin HelloWorld query",
    "steps": [
        {
            "name": "execute_gremlin",
            "url": "/tinkerpop/gremlin",
            "operation": "POST",
            "request": "g.V().hasLabel('airport').groupCount().by('country')",
            "assertions": {
                   //query response for select country,count(country) from airports group by country;
            }
        }

    ]
}
@mailtoach79
Copy link

Yes, we can pass gremlin in two ways as explained above. I would update the hello world execution example soon. thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants