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

152
Views
Adonis get current data from json field

I'm new in adonis.js. and i can't find any examples how to get data from json field. i have destination table and in it i have translations json field. and in that field i have data like this.

{
  "status": "success",
  "destinations": {
    "type": "outgoing",
    "slug": "destionation-1",
    "translations": {
      "ge": {
        "name": "ge-name"
      },
      "en": {
        "name": "en-name"
      }
    },
    "createdAt": "2022-03-30T13:26:54.590+04:00",
    "updatedAt": "2022-03-30T13:26:54.590+04:00",
    "id": 1
  }
}

i need something like this

return await Destination.query()
            .where('translations', 'ge').orderBy('created_at', 'asc')

i need to get data

{
"name": "ge-name"
}

sorry for my bad english.

about 4 years ago · Juan Pablo Isaza
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!