how to use variables in nested queries? · Issue #17 · pythonql/pythonql · GitHub
Skip to content

how to use variables in nested queries? #17

Description

@nikhilg1312

Hi PythonQL Team,

This is not an issue but more of a doubt. I was trying to figure out how to use the nested query pattern for querying JSON with a variable.
I have tried :

ip_val = "Person"
res2 = [ select (l)
match {
"iri": {
"value": as l
},
"label": {
"value": ip_val
}
} as x in ip_json ]

Here I am trying to substitute variable "ip_val" in query under label tag.
I also tried using "for" and let". Can you please guide me for this?

PS: I thought this would be a faster way to reach out to you. :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions