Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

141
Views
How i can access my data in react frontend after i get paginated data from faunadb?

My response from faunadb database to the frontend react looks similar to this but i dont know how to reach to the data object which is containing (letter and extra) keys. I have used map function in my frontend as well but it didn't work.

{
"data": [
    {
      "ref": Ref(Collection("Letters"), "101"),
      "ts": 1565299176485000,
      "data": {
        "letter": "A",
        "extra": "First"
      }
    },
    {
      "ref": Ref(Collection("Letters"), "102"),
      "ts": 1565299176485000,
      "data": {
        "letter": "B",
        "extra": "second"
      }
    }
]
}
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

response.data[i].data

Where i is the index of the array you wish to reach.

Or:

response.data.map(o => console.log(o.data)) 

This will log the contents of the data object nested in the array that is nested within the outer data object.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!