Hi there I’m getting `Cannot return null for non-n...
# prefect-community
a
Hi there I’m getting
Cannot return null for non-nullable field flow_run.flow
when query GraphQL in Interactive API tab. I want to see flow name alongside with flow_run information, but I can’t get flow name. I see flow_id and I can fetch all names and map programmatically, but I hope there’s more convenient solution.
Here GraphQL snippet giving me that error
Copy code
{
  flow_run(
    where: {
      state: {_neq: "Scheduled"}, 
      start_time: {
        _gte: "2023-02-20T00:00:00.000000+00:00", 
        _lte: "2023-02-21T23:59:59.999999+00:00"
      }
    }
  )
   {
    # if uncomment I get error: Cannot return null for non-nullable field flow_run.flow
    # flow{
    #   name
    # }
    name
    flow_id
    id
  }
}