lapis icon indicating copy to clipboard operation
lapis copied to clipboard

Get null values from Model query as something else than nil

Open eko234 opened this issue 2 years ago • 0 comments

Hi leafo, I've been really digging lapis and I understand that there are some caveats regarding lua handling null values, I want to know if there is a way to get the raw body of a request that contains a json body and use some parsing library that would retrieve null values as something else, the other thing i would find very useful is a way to configure the database layer to return null values as db.Null instead of null, I don't know if there is already a solution for that but I can't seem to find one, I'm currently developing a json rest api and the lack of data integrity hurts, especially in the frontend.

eko234 avatar Aug 05 '21 04:08 eko234