Skip to content

Fetch tasks for given workflow name and project name #3606

Answered by joshmeek
najoshi7 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @najoshi7 try something like this:

query = {
    "query": {
        with_args(
            "flow",
            {
                "where": {
                    "_and": {
                        "project": {
                            "name": {"_eq": "user1"},
                        },
                        "name": {"_eq": "workflow-2"},
                    }
                }
            },
        ): {"name": True, "id": True}
    }
}

client.graphql(query)

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@najoshi7
Comment options

@najoshi7
Comment options

@joshmeek
Comment options

@najoshi7
Comment options

Answer selected by joshmeek
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