question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to omit a field?

See original GitHub issue

Howdy! 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:closed
  • Created 3 years ago
  • Comments:8

github_iconTop GitHub Comments

71reactions
koskimascommented, Sep 25, 2020

@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.

39reactions
Kadeluxecommented, Sep 21, 2020

Jesus… Why all Node ORMs look like a giant hack

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found