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.

[V4] Select just specific data to return

See original GitHub issue

I want the API to not return specific information for certain endpoints, such as small patch images inside launches, for example. I’ve read the documentation and I’ve tried doing this but it doesn’t work 😕

{
    "options": {
        "populate": [
            {
            	"path": "links.patch",
            	"select": {
            		"small": 0
            	}
            },
        ]
    }
}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jesusrp98commented, Sep 5, 2020

Yeah that solves my issue. Thank you very much!!

0reactions
jakewmeyercommented, Sep 5, 2020

And for the original question, this would hide the large patch link.

{
  "options": {
    "select": {
      "links.patch.large": 0
    }
  }
}

Because links isn’t a populated field, you can use a top level select. The populate select only applies to the object that was populated.

Read more comments on GitHub >

github_iconTop Results From Across the Web

OData V4: Is it possible to only select fields from a parent ...
The closest I can get is to just select one field from each level, introduces a lot of complexity into our code, and...
Read more >
How to Select Specific Columns in an Entity Framework Query
This one little line tells Entity Framework to go to the Posts table in the StackOverflow database, get ALL of the rows, and...
Read more >
Create a simple select query - Microsoft Support
When you want to select specific data from one or more sources, you can use a select query. A select query helps you...
Read more >
1. Retrieving Records - SQL Cookbook [Book] - O'Reilly
The WHERE clause allows you to retrieve only rows you are interested in. If the expression in the WHERE clause is true for...
Read more >
How do I select a subset of a DataFrame? - Pandas
As a single column is selected, the returned object is a pandas Series . ... to select the data from a pandas DataFrame...
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