Joshua Greenhalgh
04/21/2022, 3:20 PMKevin Kho
Joshua Greenhalgh
04/21/2022, 3:21 PMKevin Kho
Joshua Greenhalgh
04/21/2022, 3:22 PM{
flow(where: {project: {name: {_eq: "dev"}}}) {
id
}
}
Kevin Kho
query = """
{
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
Kevin Kho
Anna Geller
Joshua Greenhalgh
04/21/2022, 3:30 PM