get item by the label of a linked entry
See original GitHub issueI figured out how it is possible to get entries by a linked entry (lets say a one-to-many Category) and thats great.
let options = {
'content_type': 'study',
'limit': params[0],
'skip': params[1],
'order': params[2],
'fields.category.sys.id': params[3],
'fields.author.sys.id': params[4]
};
but is it possible to use, lets say fields.category.fields.label
or even better fields.category.fields.slug
, instead of its id (here: fields.category.sys.id
) ?
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
javascript - Find html label associated with a given input
Here is a function that takes the element as an argument and returns the associated ... This code supports getting the labels of...
Read more >The Label element - HTML: HyperText Markup Language | MDN
The HTML element represents a caption for an item in a user interface.
Read more >HTML Inputs and Labels: A Love Story | CSS-Tricks
There are two ways to pair a label and an input. One is by wrapping the input in a label (implicit), and the...
Read more >Using label elements to associate text labels with form controls
The objective of this technique is to use the label element to explicitly associate a form control with a label. A label is...
Read more >HTML label tag - W3Schools
Tip: The for attribute of <label> must be equal to the id attribute of the related element to bind them together. A label...
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
@groundc @stickyhands this is now possible , Here is an example code to do that. Please note that you need to specify the contentType of the reference field that you will querying. which is what am doing in
fields.bestFriend.sys.contentType.sys.id
.Thanks a lot for your reply! Works great.