Skip to content
Discussion options

You must be logged in to vote

Hi @najoshi7

Your issue is that you must pluralize flow_run when nested there e.g.

In [14]: client = prefect.Client()
    ...: 
    ...: query = {
    ...:     "query": {
    ...:         "flow": {
    ...:             "id": True,
    ...:             "name": True,
    ...:             "flow_runs": {
    ...:                 "state": True,
    ...:                 "id": True
    ...:             }
    ...:         }
    ...:     }
    ...: }
    ...: 
    ...: x = client.graphql(query)

In [15]: x
Out[15]: 
{
    "data": {
        "flow": [
            {
                "id": "7761cd4a-292c-4571-8b0d-0f158861ca4a",
                "name": "empty",
                "flow_runs": []
         …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@najoshi7
Comment options

Answer selected by najoshi7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants