Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get null values from Model query as something else than nil #742

Open
eko234 opened this issue Aug 5, 2021 · 0 comments
Open

Get null values from Model query as something else than nil #742

eko234 opened this issue Aug 5, 2021 · 0 comments

Comments

@eko234
Copy link

eko234 commented Aug 5, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant