jbmusso / grex

JavaScript graph database client for TinkerPop2 Rexster
MIT License
46 stars 12 forks source link

Argument#parse converts numeric strings to numbers #41

Open AlexanderBeyn opened 10 years ago

AlexanderBeyn commented 10 years ago

Passing numeric strings to any of the step methods seems to convert those strings to numbers:

g.V().has('id', '1234').methods;
[ '.V()', '.has(\'id\',1234)' ]

I believe this stems from this false in Argument#parse, but I could be missing something.

jbmusso commented 10 years ago

Good catch. This is most likely what causes the issue. I'll see if I can come with a solution that make sure gRex handle this not-so-special case.