fluree / core

Fluree releases and public bug reports
0 stars 0 forks source link

Option to have multi-query return results even when 1+ included queries throw errors #12

Open aaj3f opened 1 year ago

aaj3f commented 1 year ago

Description

It is generally a good thing that v3 Fluree, when presented with a multi-query where one or more of the included queries throw errors (e.g. for invalid syntax), will return a 4XX with the errors described. This is, however, a departure from v2 Fluree where the erroneous query in the multi-query map would be returned simply with null results and the other successful query results would be returned with a 2XX status code.

The ask would be for some sort of option when submitting a multi-query to "unsafely" return results, EVEN / ESPECIALLY if one query in the multi-query map throws an error

More specific use case details (for Nexus) can be found in this ticket: https://github.com/fluree/flhubee/issues/214

bplatz commented 1 year ago

We think this is working where valid results are returning, but exception return values might need to get validated, and may not be logging the exception.