Hi all, I’m running into an issue with Prefect GQL...
# prefect-community
c
Hi all, I’m running into an issue with Prefect GQL where I get the following error message
Copy code
{
  "errors": [
    {
      "path": [
        "flow_run",
        0,
        "id"
      ],
      "message": "Cannot return null for non-nullable field flow_run.id.",
      "extensions": {
        "code": "INTERNAL_SERVER_ERROR"
      }
    }
  ],
  "data": null
}
When I add the following “where” filter it seems to work (this would suggest I have some flows with null ids?), however when running a query to find flows with null ids nothing is returned.
Copy code
{
  "where": {
    "flow": {
      "id": {
        "_is_null": false
      }
    }
  }
}
Please let me know if you have any ideas about why this may happen, thanks!
🙌 1
c
What is the graphql you are using for the first? Is this in the interactive API, or using a client?
j
@Connor Vaid happens in both - in our flows and via graphql playground?
c
Correct - it happens in both
c
and the graphql query you are submitting?
also, is this prefect cloud, or prefect server? Have you deleted flows / flow groups?
j
We have recently deleted a collection of flows - the query is this;
Copy code
query Flow_run($where: flow_run_bool_exp, $limit: Int, $offset: Int) {
    flow_run(where: $where, limit: $limit, offset: $offset) {
      id
      name
      parameters
      scheduled_start_time
      start_time
      end_time
      state
      flow {
        name
      }
    }
  }