Parse relational query in a single Httpget call

Asked

Viewed 51 times

0

good morning.

This question is for the Android environment. I use ADT.

I need to implement in Parse a Car table and a Manufacturer table. Car has the model and manufacturer fields. The Manufacturer table has the name field. In addition to the fields cited, each table has the Parse default fields.

Basically, what I need is for the manufacturer field in the Car table to contain a reference to Objectid in the Manufacturer table.

Goal: my app will show a list with the car model and the name of its manufacturer.

That is, I need in a single call Httpget to do the "Join" of the tables, so that the return json brings me at once everything I need.

Note: I do not use the Parse SDK, I am implementing the calls "at hand", passing the header parameters with the KEYS on each call.

I need to please: Know how to create these tables; Know how to test the call by the API CONSOLE on the Parse site; know how to make the call Httpget in Java (Android)

Thank you all very much, I’m waiting!

  • What code do you have so far?

  • Oops! Could I solve by passing the url? Where={"manufacturer":{"$inQuery":{"Where":{"name":"Chevrolet"},"classname":"Manufacturer"}}} run on the car table. So I get the list of all only cars that are from Chevrolet, for example! I have no code yet, I made this call in the API Console, in the Parse panel itself. Important tip: Attention to the use of upper and lower case. Note that in my example table/class names start with upper case and field/column names start with lower case. And don’t forget to convert the parameter to UTF8 before concatenating to url. m/

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.