Denis Pokotylyuk(External)
03/24/2022, 9:46 PMquery GetSchedules {
  flow_group(where: {id: {_eq: "eb595947-xxxxxx"}}) {
    schedule 
  }
}Kevin Kho
Kevin Kho
query GetSchedules {
  flow_group(where: {id: {_eq: "7fb20810-cd37-41cf-9b04-218c284f6db5"},
                    default_parameters: {_contains: {x: "something else "}}}) {
    schedule
    default_parameters
  }
}Kevin Kho
Kevin Kho
Denis Pokotylyuk(External)
03/24/2022, 10:06 PMset_flow_group_scheduleKevin Kho
Denis Pokotylyuk(External)
03/24/2022, 10:10 PMquery GetSchedules {
  flow_group(where: {id: {_eq: "eb595947-xxxxx"}}) {
		default_parameters
  }
}
{
  "data": {
    "flow_group": [
      {
        "default_parameters": {}
      }
    ]
  }
}
How can I query on that then?Denis Pokotylyuk(External)
03/24/2022, 10:10 PMdefault_parameters: {_contains: {x: "something else "}}}) {
What is “x: “something else “” in my case? 🙂Denis Pokotylyuk(External)
03/24/2022, 10:12 PMKevin Kho
Kevin Kho
Kevin Kho
Denis Pokotylyuk(External)
03/24/2022, 10:13 PMKevin Kho
Denis Pokotylyuk(External)
03/24/2022, 10:16 PMKevin Kho
Denis Pokotylyuk(External)
03/24/2022, 10:20 PMKevin Kho
Kevin Kho
Kevin Kho
value twoDenis Pokotylyuk(External)
03/24/2022, 10:23 PMDenis Pokotylyuk(External)
03/24/2022, 10:23 PMKevin Kho
clocks. Not something as nester as this. You’d have to execute that in PythonDenis Pokotylyuk(External)
03/24/2022, 10:29 PMKevin Kho
from prefect.client import Client
query = """
query {
  flow(where: {id: {_eq: "608f7f60-cc0d-4abc-a63a-bb653ff2c1e5"}}) {
    id
    schedule
  }
}
"""
client = Client()
res = client.graphql(query)
print(res["data"])Kevin Kho
res["data"] will be a dictionary you can manipulateDenis Pokotylyuk(External)
03/24/2022, 10:37 PMDenis Pokotylyuk(External)
03/24/2022, 10:38 PMKevin Kho
Kevin Kho
Denis Pokotylyuk(External)
03/24/2022, 10:39 PMKevin Kho
Kevin Kho
Denis Pokotylyuk(External)
03/24/2022, 10:52 PMBut if I run every schedules about once or twice a day, not so very often. Can I have more than 10?
Kevin Kho
Kevin Kho
Denis Pokotylyuk(External)
03/24/2022, 10:56 PMDenis Pokotylyuk(External)
03/24/2022, 10:57 PMKevin Kho