0

Im new at the developing with back 4 app. I have 2 databases and i want to get all objects from the one database by the Pointer. I have a database named "Visa" and a Database named "Person. Every Visa entry has got a Pointer to one Person , but one Person can have more than one Visa.

I want to get all Visa-entries for one Person. How do I do this? i tried it in this way:

so heres my code

  const Visa: Parse.Object[] = Parse.Object.extend('Visa') // database
  const visaQuery: Parse.Query = new Parse.Query(Visa)
  visaQuery.equalTo('person', person) //person is the pointer
  const results: Parse.Object[] = await visaQuery.find()

thx for your time and help :-)

Lennox
  • 37
  • 4
  • Have you already taken a look at this guide: https://docs.parseplatform.org/js/guide/#relational-queries? It can help you with that. – Charles Mar 07 '23 at 01:25

0 Answers0