Skip to content

Setting for returning strings by default instead of neo4j.int #106

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

Closed
bryanph opened this issue Jul 11, 2016 · 5 comments
Closed

Setting for returning strings by default instead of neo4j.int #106

bryanph opened this issue Jul 11, 2016 · 5 comments

Comments

@bryanph
Copy link

bryanph commented Jul 11, 2016

Currently the API returns neo4j.int instances for every numeric result. Converting these to strings before sending it to the user is quite tedious. I was wondering if a default 'string' setting would make sense, this would alleviate a lot of unnecessary mapping.

@whatSocks
Copy link
Contributor

or a default low / high setting.

@whatSocks
Copy link
Contributor

there's an open PR about this issue #94

@pontusmelke
Copy link
Contributor

We are looking into how we want to go about doing this part more convenient in the API.

Regards,
Pontus

@zhenlineo
Copy link
Contributor

Hi, we provides a InSafeRange method now to help to decide if the number is safe to cast to int or string. The PR is #153

Pls let us know if that solves your problem.

@lutovich
Copy link
Contributor

@bryanph I hope functionality added in #153 resolves the issue. Please feel free to post more info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants