← Back to context Comment by hnuser123456 1 month ago I see you haven't encountered an API where a GET command can modify the database. 6 comments hnuser123456 Reply asa400 1 month ago Similarly, I once worked somewhere that had an HTTP API that returned status code 200 {“error”: “ok”} to indicate an error occurred. Schiendelman 1 month ago A lot of GraphQL APIs are like this! They return a 200 just to mean the damn GraphQL is well formed, and the call can totally fail underneath. adithyassekhar 1 month ago Now why would you make such a monstrosity? Audit logs? I was having good day till now. esafak 1 month ago I saw a code base where SQL UDFs were used to mutate the data with SELECTs... ditchfieldcaleb 1 month ago Say what now IshKebab 1 month ago I have not either. What's your point? AI isn't perfect.
asa400 1 month ago Similarly, I once worked somewhere that had an HTTP API that returned status code 200 {“error”: “ok”} to indicate an error occurred. Schiendelman 1 month ago A lot of GraphQL APIs are like this! They return a 200 just to mean the damn GraphQL is well formed, and the call can totally fail underneath.
Schiendelman 1 month ago A lot of GraphQL APIs are like this! They return a 200 just to mean the damn GraphQL is well formed, and the call can totally fail underneath.
adithyassekhar 1 month ago Now why would you make such a monstrosity? Audit logs? I was having good day till now.
Similarly, I once worked somewhere that had an HTTP API that returned status code 200 {“error”: “ok”} to indicate an error occurred.
A lot of GraphQL APIs are like this! They return a 200 just to mean the damn GraphQL is well formed, and the call can totally fail underneath.
Now why would you make such a monstrosity? Audit logs? I was having good day till now.
I saw a code base where SQL UDFs were used to mutate the data with SELECTs...
Say what now
I have not either. What's your point? AI isn't perfect.