Skip to content

'graphname' argument in gsql() method does not work #280

@ameyabp

Description

@ameyabp

The 'graphname' argument which is used in gsql() method to specify which graph to run the gsql query on, does not work as expected

Create any graph of your choice with name 'sample'
Try running the following code snippet:
gsql_query = 'SELECT n FROM (n:<VERTEX>)'
conn.gsql(gsql_query, graphname='sample')

The query should have returned a result, because the same query can be run successfully in the gsql shell. But instead it says
Error: Currently not using any graphs! Please use 'USE GRAPH' command to switch to a graph. Create a graph if no graph exists.

Desktop (please complete the following information):

  • OS: Ubuntu 22.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions