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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return Graph Data (Verticies and Edges) #435

Open
adambattenburg opened this issue May 22, 2020 · 0 comments
Open

Return Graph Data (Verticies and Edges) #435

adambattenburg opened this issue May 22, 2020 · 0 comments

Comments

@adambattenburg
Copy link

Apologies if this is the wrong place to ask, but I haven't been able to find documentation on this anywhere. How would I get the graph data using the Node API? As in the edges and vertices?

I had a similar issue with the REST API, but looked at the network requests in the Orient Studio to do something like below.

    const params = {
        command: `${searchQuery}`,
        mode: "graph"
    };

    let response;
    const request = `http://${address}:2480/command/${databaseName}/sql/-/${numberOfNodes}`;

    try {
        response = await axios.post<any>(request, params, {
            headers: {
                Authorization: `Basic ${btoa(example)}`
            }
        });
    } catch (error) {
    }

Is there anyway to do this from the Node API? Thank you so much, and sorry for posting this basic question as in issue. I can't find the answer anywhere in my searching.

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

1 participant