casperin / pg-amigo

1 stars 1 forks source link

Server shouldn't return 500 if the query is mal formatted #1

Closed casperin closed 6 years ago

casperin commented 6 years ago

It should return 200 and we should probably add an error field to the json returned from the query end point:

{
  data: {
    schema: [...],
    values: [...],
    error: null | String
  }
}
casperin commented 6 years ago

Fixed in the branch hyperapp-poc