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.

[Feature Request] Getting multiple values from the store

See original GitHub issue

Assume we have a schema;

schema: {
  foo: { bar: 'baz' },
  bar: { baz: 'foo' },
  baz: 'bar'
}

I think it would be nice to get all these values at once like;

const [value1, value2, value3] = conf.get('foo.bar', 'bar.baz', 'baz')

OR

const [value1, value2, value3] = conf.get(['foo.bar', 'bar.baz', 'baz'])

What do you think about this approach?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
sindresorhuscommented, Jan 2, 2021

I’m ok with supporting conf.get(['foo.bar', 'bar.baz', 'baz']) if someone does a good pull request with docs, TypeScript types, and tests.

0reactions
BatuhanWcommented, Aug 21, 2021

@sindresorhus I managed to create a similar concept with strong type-safety. Would you like to check and let me know if we can extract something from there? https://github.com/BatuhanW/haf

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to track customer feature requests across multiple sources
Once we get some free time, we need to sort through the feedback and link it to existing or new feature requests. One...
Read more >
Is it possible to fetch multiple features from feast feature-store ...
In this scenario, the "feature service" component of the Feast can be utilized to pull data from one or more feature views.
Read more >
How To Manage Feature Requests [Template included]
This guide will teach you everything about feature requests – how to process ... that are aimed to get more value out of...
Read more >
3 ways to manage software feature request - Amoeboids
Discover best practices to manage feature requests from different stakeholders. Practical tips to get you on top of the game.
Read more >
Feature Request - Allow multiple values for custom fields #4908
Ability to create and maintain custom fields which have multiple values. For example, a device's IP addresses, or software packages installed.
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