Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Node.js guide on retrieving float values #915

Open
matea16 opened this issue Jul 15, 2024 · 0 comments
Open

Update Node.js guide on retrieving float values #915

matea16 opened this issue Jul 15, 2024 · 0 comments
Assignees
Labels
priority: low (improvements) An idea how the representation of knowledge on a certain page could be improved

Comments

@matea16
Copy link
Contributor

matea16 commented Jul 15, 2024

Update the current Node.js quick start guide on how to process results and retrieve float values and list of float values.
Example:

const floatProp = resultSingle.records[0].get('floatProp');
const floatValue = floatProp !== null && floatProp !== undefined ? Number(floatProp) : null;
console.log('Float value:', floatValue);

and for the lists:

const floatList = resultList.records[0].get('floatList') || [];
const floatValues = floatList.map(value => Number(value));
console.log('List of float values:', floatValues);
@matea16 matea16 added the priority: low (improvements) An idea how the representation of knowledge on a certain page could be improved label Jul 15, 2024
@matea16 matea16 self-assigned this Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: low (improvements) An idea how the representation of knowledge on a certain page could be improved
Projects
None yet
Development

No branches or pull requests

1 participant