Hi, trying to get only get the error logs from graphql. Does anybody know how I can restrict the que...
d
Hi, trying to get only get the error logs from graphql. Does anybody know how I can restrict the query below so I don’t get all the logs levels?
Copy code
query {
	flow_run{
    logs {
      message
      level
      info
      created
    }
  }
}
Of course a totally different query to get error logs from graphql would also be welcomed
k
Like this?
Copy code
query {
	flow_run{
    logs (where: {level: {_eq: "ERROR"}}){
      message
      level
      info
      created
    }
  }
}
🎉 1
d
@Kevin Kho Thanks !