How to omit a field?
See original GitHub issueHowdy! How do I omit fields when query? For instance, I’d like to hide password
and is_admin
fields.
GET http://localhost:4000/users
:
[
{
"email": "some@one.com",
"is_admin": true,
"name": "Some One",
"password": "this_is_the_password"
},
{
"email": "any@one.com",
"is_admin": false,
"name": "Any One",
"password": "this_is_the_password"
}
]
GET http://localhost:4000/users/1
:
{
"email": "some@one.com",
"is_admin": true,
"name": "Some One",
"password": "this_is_the_password"
}
Objection.js (v2.2.3), TypeScript (v4.0.2), Koa (v2.13.0), Postgres (v12)
Issue Analytics
- State:
- Created 3 years ago
- Comments:8
Top Results From Across the Web
How to omit fields in object spread? - typescript
If you don't mind an intermediate step, you can do something like this: const { fieldF, ...everythingExceptF } = a; const b: B ......
Read more >Delete a field
In the Navigation Pane, right-click the table, and then click Design View. · In the table design grid, select the field that you...
Read more >Delete a field - Greenhouse Support
From the Edit Field dialog box, navigate to the lower left-hand corner and click Delete. Click Delete in the subsequent dialog box to...
Read more >How to Remove Fields in John Deere Operations Center
How to Remove Fields in John Deere Operations Center – New to the John Deere Operations Center? Want to get more out of...
Read more >How to delete a field - YouTube
... please check out our Help Center article: https://intercom.help/onesoil/en/articles/5237448-how-to-edit-or- delete - field -information...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@Kadeluxe You are probably really young and new to open source and programming in general, so I’ll give you the benefit of a doubt and assume you didn’t really want to be mean. But for future reference comments like that will destroy people’s willingness to write open source and help you and others by spending their free time answering questions like this.
Projects like this are written by people for free on their spare time without any compensation or other benefits. For example in my case, that message really fucking hurt and I won’t be answering any questions, or fixing any bugs for a while. Thanks to you.
Jesus… Why all Node ORMs look like a giant hack