The question is now that I don’t know how to grab ...
# orm-help
n
The question is now that I don’t know how to grab the data to display across the interface, if anyone could point me some resources on a way to do it, that would appreciated
h
If tell me your stack I may help you 🙂
ie framework and stuff
n
it’s just vanilla javascript
no, a guy put me a server running locally with neo4j
h
ok I get it you can grab data across instances by adding them to query
Copy code
const query = `{
  NaturalPerson(lastName: "Heck") {
    firstName
    lastName
    birthDate
    taxIdentificationNumber
    homeTownName
    nationalityCode
    genderCode
  }
  someother{
       ...
   }
}`;
if you want them in single request, or you can make multiple request if you like to do so
n
right, my question might be a bit more newbie, it is instead of console.log(data), how do I pass a the data to an html page..
h
pass mean what ? You can select any element in you html by document.getElementById or something equivalent and can set the innerHTML of to your data.somethin
You cant pass data to HTML but you can change HTML via js. You can pass data to templating language but that is on the server
n
right, I tried before like that, it’s probably my javascript skills… thank you @Harshit
h
I'd recommend you get your basics more strong before diving into graphql 🙂 practice data fetching from a rest API
then rendering it into stuff I can link some videos for you to improve your skills
n
that’s a a good advice, yes, I would appreciate, dont seem to find good content about it
🤗 1
h

https://www.youtube.com/watch?v=Oive66jrwBs

You can watch this, it is using the fetch api to grab the data and he show how to display that
it is very similar to what you are doing
Also checkout more videos from his channel if you wanna learn more 🙂
n
thank you very much, moving on learning👍
🙂 1