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

How get out vertex if is array object ? #9155

Closed
Funky89 opened this issue Feb 26, 2020 · 1 comment
Closed

How get out vertex if is array object ? #9155

Funky89 opened this issue Feb 26, 2020 · 1 comment

Comments

@Funky89
Copy link

Funky89 commented Feb 26, 2020

Version ODB : 2.2.31

**** I Apologise for my english ****

Hey guys, i need your help. I want to get this element

image

I try with a request :
//idLogin = #93:11
retour.ridMyConf = gdb.command("sql", "SELECT out('MyConf') FROM Logins WHERE @rid = " + idLogin)

My request return this :
"ridMyConf ": [ { "@type": "d", "@rid": "#-2:0", "@version": 0, "out": [ "#116:19", "#113:122", "#114:121" ], "@fieldTypes": "out=z" } ],

i get "out" with this :
ridMyConf[0].getProperty('out') but i can"t use loop because is an Object

I try to use getVertices() but i don't know how use correctly i don't found any example in javascript

Have you any idea to how get getProperty ?

Find regards,

Funky

@Funky89
Copy link
Author

Funky89 commented Feb 26, 2020

I found solution juste replace
ridMyConf[0].getProperty('out')
to
ridMyConf[0].getRecord().field("out")
And now i can get a array

@Funky89 Funky89 closed this as completed Feb 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant