Joshua Greenhalgh
04/21/2022, 3:20 PMKevin Kho
04/21/2022, 3:20 PMJoshua Greenhalgh
04/21/2022, 3:21 PMKevin Kho
04/21/2022, 3:22 PMJoshua Greenhalgh
04/21/2022, 3:22 PM{
flow(where: {project: {name: {_eq: "dev"}}}) {
id
}
}
Kevin Kho
04/21/2022, 3:25 PMquery = """
{
flow(where: {project: {name: {_eq: "dev"}}}) {
id
}
}
"""
from prefect.client import Client
client = Client()
client.graphql(query)
and you can print the return. It’s JSON and then you can pull the ids from the data
field I think and then make a new query
query = """
mutation {
deleteFlow(input: "flow_id") {
success
}
}
"""
Anna Geller
04/21/2022, 3:25 PMKevin Kho
04/21/2022, 3:26 PMAnna Geller
04/21/2022, 3:27 PMJoshua Greenhalgh
04/21/2022, 3:30 PM