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.

V7 - Bug: GetValues() returns only array of values

See original GitHub issue

In v7 when getValues is called with multiple properties return value is array of values only and not object with key/value pair like in v6.

Example: const values = getValues(["property1", "property2", "propertyu3"]) V6: values would be {property1: "value1", property2: "value2," property3: "value3"} V7: values are ["value1", "value2", "value3"]

I have read Migration Guide and could not find any changes regarding getValues(), also read API documentation where in example it is illustrated that it should return array of objects with key/value pair so I assume it is a bug?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
bluebill1049commented, Dec 9, 2021

thanks @RikkiMasters fixed, please send us a pr next time if you spot thing is incorrect.

1reaction
bluebill1049commented, Jun 9, 2021

thanks, updated.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What does the range method getValues() return and ...
It ALWAYS returns a two dimensional array of values. One dimensional array is [1,2,3]. Two dimensional array is [[ ...
Read more >
Using Bind Variables — cx_Oracle 8.3.0 documentation
In order get values back from the database, a bind variable must be created using Cursor.arrayvar() . The first parameter to this method...
Read more >
Breaking changes in 7.0 | Elasticsearch Guide [7.17] | Elastic
Purely negative queries (only MUST_NOT clauses) now return a score of 0 rather than 1 . The boundary specified using geohashes in the...
Read more >
Arrays — Apache Arrow v10.0.1
Return an Array that is a concatenation of the lists in this array. Note that it's different from values() in that it takes...
Read more >
array_values - Manual - PHP
Returns an indexed array of values. Examples ¶. Example #1 array_values() example. <?php $array = ...
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