Platform

Add & Get data with Back4App

Introduction

You already know how to install Parse SDK and to connect your application to Back4App database. After doing that, you are able to store any data that can be JSON-encoded: objects like strings, numbers, booleans, dates, files, GeoPoints, arrays, etc.

To do so, you have to use ParseObjects and you can do that from the Frontend side. This guide will help you deal with ParseObject class possibilities to manage your application’s data at Back4App.

Goals

  • To create, read, update and delete Parse Objects at Back4App database.

Prerequisites

To complete this tutorial, you will need:

Step 1 - Create Parse Objects

To store data at Back4App database from the frontend side, you have to use ParseObjects. Each ParseObject has to be associated to a class, so you will be able to distinguish different sorts of data. For example, imagine that your application is related to soccer and you want to store data about soccer players around the world, as their names, years of birth, email contacts, attributes, etc. To do so, you have to create a ParseObject, that will store the information that you want about a specific player.

To create this ParseObject you have to associate it to a class, let’s say that you want to associate with a class named “SoccerPlayers”.

After associating your ParseObject to this class you can declare information about a specific player using some keys, for example:

  • playerName: A. Wed;
  • yearOfBirth: 1997;
  • emailContact: [email protected];
  • attributes: fast, good conditioning;

We recommend that you NameYourClassesLikeThis and nameYourKeysLikeThis, just to keep your code looking pretty.

Now, to really add this soccer player information to your class “SoccerPlayers” at Back4App database, you have to use the saveInBackground method. And that’s it! After that, we will take care of the backend side of this operation.

To create a ParseObject as described above, just use the following code. You just need to select the technology of your project.

The code below won’t work as expected if you haven’t installed Parse SDK correctly for the technology of your project.


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
const SoccerPlayers = Parse.Object.extend("SoccerPlayers");
const soccerPlayers = new SoccerPlayers();

soccerPlayers.set("playerName", "A. Wed");
soccerPlayers.set("yearOfBirth", 1997);
soccerPlayers.set("emailContact", "[email protected]");
soccerPlayers.set("attributes", ["fast","good conditioning"])

soccerPlayers.save()
.then((player) => {
  // Success
  alert('New object created with objectId: ' + player.id);
}, (error) => {
  // Save fails
  alert('Failed to create new object, with error code: ' + error.message);
});

Isn’t Parse SDK for JavaScript working properly? Make sure you have installed it correctly by checking the complete Install Parse SDK guide to JavaScript projects.
Also, feel free to check the official Parse Documentation regarding Parse SDK for JavaScript.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Configure Query
ParseObject soccerPlayers = new ParseObject("SoccerPlayers");
// Store an object
soccerPlayers.put("playerName", "A. Wed");
soccerPlayers.put("yearOfBirth", 1997);
soccerPlayers.put("emailContact", "[email protected]");
soccerPlayers.addAllUnique("attributes", Arrays.asList("fast", "good conditioning"));
// Saving object
soccerPlayers.saveInBackground(new SaveCallback() {
  @Override
  public void done(ParseException e) {
    if (e == null) {
      // Success
    } else {
      // Error
    }
  }
});

Isn’t Parse SDK for Android working properly? Make sure you have installed it correctly by checking the complete Install Parse SDK guide to Android projects.
Also, feel free to check the official Parse Documentation regarding Parse SDK for Android.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
ParseObjectCreate create;
create.setClassName("SoccerPlayers");
create.add("playerName", "A. Wed");
create.add("yearOfBirth", 1997);
create.add("emailContact", "[email protected]");
create.addJSONValue("attributes", "[ \"fast\", \"good conditioning\" ]");
ParseResponse response = create.send();
if (!response.getErrorCode()) {
  // The object has been saved
} else {
  // There was a problem, check response.
  getErrorCode();
}
response.close(); // Free the resource

Isn’t Parse SDK for Arduino working properly? Make sure you have installed it correctly by checking the complete Install Parse SDK guide to Arduino projects.
Also, feel free to check the official Parse Documentation regarding Parse SDK for Arduino.

1
2
3
4
5
6
7
8
9
10
11
12
var soccerPlayers = PFObject(className:"SoccerPlayers")
soccerPlayers["playerName"] = "A. Wed"
soccerPlayers["yearOfBirth"] = 1997
soccerPlayers["emailContact"] = "[email protected]"
soccerPlayers.saveInBackground {
  (success: Bool, error: Error?) in
  if (success) {
    // The object has been saved.
  } else {
    // There was a problem, check error.description
  }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
ParseObjectCreate create;
create.setClassName("SoccerPlayers");
create.add("playerName", "A. Wed");
create.add("yearOfBirth", 1997);
create.add("emailContact", "");
create.addJSONValue("attributes", "[ 30, \"string\" ]");
ParseResponse response = create.send();
if (!response.getErrorCode()) {
  // The object has been saved
} else {
  // There was a problem, check response.
  getErrorCode();
}
response.close(); // Free the resource


Isn’t Parse SDK for iOS working properly? Make sure you have installed it correctly by checking the complete Install Parse SDK guide to iOS Swift and iOS ObjC projects.
Also, feel free to check the official Parse Documentation regarding Parse SDK for iOS.

1
2
3
4
5
6
ParseObject soccerPlayers = new ParseObject("SoccerPlayers");
soccerPlayers["playerName"] = "A. Wed";
soccerPlayers["yearOfBirth"] = 1997;
soccerPlayers["emailContact"] = "[email protected]";
soccerPlayers.AddRangeUniqueToList("attributes", new[] { "fast", "good conditioning" });
await soccerPlayers.SaveAsync();

Isn’t Parse SDK for .NET working properly? Make sure you have installed it correctly by checking the complete Install Parse SDK guide to .NET projects.
Also, feel free to check the official Parse Documentation regarding Parse SDK for .NET.

1
2
3
4
5
6
7
ParseObject soccerPlayers = new ParseObject("SoccerPlayers");
soccerPlayers["playerName"] = "A. Wed";
soccerPlayers["yearOfBirth"] = 1997;
soccerPlayers["emailContact"] = "[email protected]";
soccerPlayers.AddRangeUniqueToList("attributes", new[] { "fast", "good conditioning" });

Task saveTask = soccerPlayers.SaveAsync();

Isn’t Parse SDK for Unity working properly? Make sure you have installed it correctly by checking the complete Install Parse SDK guide to Unity projects.
Also, feel free to check the official Parse Documentation regarding Parse SDK for Unity.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
$soccerPlayers = new ParseObject("SoccerPlayers");
$soccerPlayers->set("playerName", "A. Wed");
$soccerPlayers->set("yearOfBirth", 1997);
$soccerPlayers->set("emailContact", "[email protected]");
$soccerPlayers->setArray("attributes", ["fast", "good conditioning"]);

try {
  $soccerPlayers->save();
  echo 'New object created with objectId: ' . $soccerPlayers->getObjectId();
} catch (ParseException $ex) {  
  // Execute any logic that should take place if the save fails.
  // error is a ParseException object with an error code and message.
  echo 'Failed to create new object, with error message: ' . $ex->getMessage();
}

Isn’t Parse SDK for PHP working properly? Make sure you have installed it correctly by checking the complete Install Parse SDK guide to PHP projects.
Also, feel free to check the official Parse Documentation regarding Parse SDK for PHP.

curl -X POST \
  -H "X-Parse-Application-Id: APPLICATION_ID" \
  -H "X-Parse-REST-API-Key: REST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"playerName":"A. Wed", "yearOfBirth":1997, "emailContact":"[email protected]", "attributes":["fast", "good conditioning"]}' \
  https://parseapi.back4app.io/classes/SoccerPlayers

Isn’t Parse SDK for REST API working properly? Make sure you have installed it correctly by checking the official Parse Documentation regarding Parse SDK for REST API.


After running the code above, you will probably be wondering if anything really happened. To make sure data was saved, check out these steps:

  1. Go to Back4App website, log in, click on My Apps section, find your app and click on DASHBOARD.
  2. Then, click on the Core button. The Core section of your application’s Dashboard contains the database that Back4App provides to you. Here you should see that a class named SoccerPlayers has been created and has stored one object with all the information of “A. Wed” soccer player, as you required.

Now, there are two things to pain attention. The first one is that you didn’t have to set up a class called “SoccerPlayers” before running this code, the ParseObject declaration created it for you (that is really cool, isn’t it?).

Also, the ParseObject that is stored has some fields that you didn’t specified in the frontend side, as when it was created (the createdAt field), when it was updated for the last time (the updatedAt field), its unique identifier (the objectId field), etc. All these fields are provided as a convenience by Parse for each saved object and they aren’t associated to a ParseObject until a save operation has been completed successfully.

Step 2 - Read Parse Objects

Saving data to Back4App database is easy, but it’s even easier to get that data from it. For example, if you have the objectId of a specific object that you want to read data from, you can retrieve the whole information stored in this ParseObject using a ParseQuery. To get the values out of the ParseObject, there’s a getX method for each data type.

To read a ParseObject, just use the following code. You just need to select the technology of your project.

Don’t forget to insert the objectId of a ParseObject stored in your app Dashboard at Back4App website. To find it go to the class that the ParseObject you want to retrieve is associated with and copy its objectId, as shown in the imagine below.

The code below won’t work as expected if you haven’t installed Parse SDK correctly for the technology of your project.


1
2
3
4
5
6
7
8
const SoccerPlayers = Parse.Object.extend("SoccerPlayers");
const soccerPlayers = new SoccerPlayers();
soccerPlayers.get("QHjRWwgEtd")
.then((player) => {
  // The object was retrieved successfully.
}, (error) => {
  // The object was not retrieved successfully.
});

Isn’t Parse SDK for JavaScript working properly? Make sure you have installed it correctly by checking the complete Install Parse SDK guide to JavaScript projects.
Also, feel free to check the official Parse Documentation regarding Parse SDK for JavaScript.

1
2
3
4
5
6
7
8
9
10
11
12
13
ParseQuery<ParseObject> query = ParseQuery.getQuery("SoccerPlayers");
query.whereEqualTo("objectId", "QHjRWwgEtd");
query.getFirstInBackground(new GetCallback<ParseObject>() {
  public void done(ParseObject player, ParseException e) {
    if (e == null) {
      String playerName = player.getString("playerName"));
      int yearOfBirth = player.getInt("yearOfBirth"));
      String emailPlayer =  player.getString("emailContact");
    } else {
      // Something is wrong
    }
  }
});

Isn’t Parse SDK for Android working properly? Make sure you have installed it correctly by checking the complete Install Parse SDK guide to Android projects.
Also, feel free to check the official Parse Documentation regarding Parse SDK for Android.

1
2
3
4
5
6
7
8
ParseObjectGet get;
get.setClassName("SoccerPlayers");
get.setObjectId("QHjRWwgEtd");
ParseResponse response = get.send();
string playerName = response.getString("playerName");
int yearOfBirth = response.getInt("yearOfBirth");
Serial.println(playerName + " - " + yearOfBirth);
response.close(); // Free the resource

Isn’t Parse SDK for Arduino working properly? Make sure you have installed it correctly by checking the complete Install Parse SDK guide to Arduino projects.
Also, feel free to check the official Parse Documentation regarding Parse SDK for Arduino.

1
2
3
4
5
6
7
8
9
var query = PFQuery(className:"SoccerPlayers")
query.getObjectInBackgroundWithId("QHjRWwgEtd") {
  (soccerPlayers: PFObject?, error: NSError?) -> Void in
  if error == nil && soccerPlayers != nil {
    print(soccerPlayers)
  } else {
    print(error)
  }
}
1
2
3
4
5
6
7
8
ParseObjectGet get;
get.setClassName("SoccerPlayers");
get.setObjectId("QHjRWwgEtd");
ParseResponse response = get.send();
string playerName = response.getString("playerName");
int yearOfBirth = response.getInt("yearOfBirth");
Serial.println(playerName + " - " + yearOfBirth);
response.close(); // Free the resource


Isn’t Parse SDK for iOS working properly? Make sure you have installed it correctly by checking the complete Install Parse SDK guide to iOS Swift and iOS ObjC projects.
Also, feel free to check the official Parse Documentation regarding Parse SDK for iOS.

1
2
3
4
5
6
7
8
ParseQuery<ParseObject> soccerPlayers = ParseObject.GetQuery("SoccerPlayers");
ParseObject query = await soccerPlayers.GetAsync("QHjRWwgEtd");

// To get the values out of the ParseObject, use the Get<T> method.

string playerName = query.Get<string>("playerName");
int score = query.Get<int>("yearOfBirth");  
bool cheatMode = query.Get<bool>("emailContact");

Isn’t Parse SDK for .NET working properly? Make sure you have installed it correctly by checking the complete Install Parse SDK guide to .NET projects.
Also, feel free to check the official Parse Documentation regarding Parse SDK for .NET.

1
2
3
4
5
ParseQuery<ParseObject> query = ParseObject.GetQuery("SoccerPlayers");
query.GetAsync("QHjRWwgEtd").ContinueWith(t =>
{
    ParseObject query = t.Result;
});

Isn’t Parse SDK for Unity working properly? Make sure you have installed it correctly by checking the complete Install Parse SDK guide to Unity projects.
Also, feel free to check the official Parse Documentation regarding Parse SDK for Unity.

1
2
3
4
5
6
7
8
$query = new ParseQuery("SoccerPlayers");
try {
  $soccerPlayers = $query->get("QHjRWwgEtd");
  // The object was retrieved successfully.
} catch (ParseException $ex) {
  // The object was not retrieved successfully.
  // error is a ParseException with an error code and message.
}

Isn’t Parse SDK for PHP working properly? Make sure you have installed it correctly by checking the complete Install Parse SDK guide to PHP projects.
Also, feel free to check the official Parse Documentation regarding Parse SDK for PHP.

curl -X GET \
  -H "X-Parse-Application-Id: APPLICATION_ID" \
  -H "X-Parse-REST-API-Key: REST_API_KEY" \
  https://parseapi.back4app.io/classes/SoccerPlayers/QHjRWwgEtd

Isn’t Parse SDK for REST API working properly? Make sure you have installed it correctly by checking the official Parse Documentation regarding Parse SDK for REST API.


Now you may be wondering if every time you want to read data from a ParseObject you will have to know its objectId. The answer to this question is: NO! To search for an object, you can use many other search alternatives, such as searching in “SoccerPlayers” class for a player with a specific name, or for players who were born in a certain year, etc. Parse has many search alternatives to find ParseObjects, which you can find out more about in the official Parse documentation related to ParseQueries. To do so, click on the link below that corresponds to the technology of your project.


Step 3 - Update Parse Objects

To update a ParseObject, you just need to just set some new data on the ParseObject you want to update and call one of the save methods.

Note that Parse automatically figures out which data has changed, so only these fields will be transmitted during a save and you don’t have to worry about squashing data in the cloud that you didn’t intend to update.

For example, assuming you have saved an object and have its objectId, you can retrieve the ParseObject using a ParseQuery and update its data by using the code below. To do so, you just need to select the right guide to the technology of your project.

Don’t forget to insert the objectId of a ParseObject stored in your app Dashboard at Back4App website. To find it go to the class that the ParseObject you want to retrieve is associated with and copy its objectId, as shown in the imagine below.

The code below won’t work as expected if you haven’t installed Parse SDK correctly for the technology of your project. To verify if you have done it correctly, go to Add Back4App to your App project tutorial to ensure followed the steps as required.


1
2
3
4
5
6
7
8
9
10
11
12
13
14
const SoccerPlayers = Parse.Object.extend("SoccerPlayers");
const soccerPlayers = new SoccerPlayers();

// Retrieve the object by id
soccerPlayers.get("QHjRWwgEtd")
.then((player) => {
  // The object was retrieved successfully and it is ready to update.
  player.set("yearOfBirth", 1998);
  player.set("emailContact", "[email protected]");
  player.save();

}, (error) => {
  // The object was not retrieved successfully.
});

Isn’t Parse SDK for JavaScript working properly? Make sure you have installed it correctly by checking the complete Install Parse SDK guide to JavaScript projects.
Also, feel free to check the official Parse Documentation regarding Parse SDK for JavaScript.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
ParseQuery<ParseObject> query = ParseQuery.getQuery("SoccerPlayers");
// Retrieve the object by id
query.getInBackground("QHjRWwgEtd", new GetCallback<ParseObject>() {
  public void done(ParseObject player, ParseException e) {
    if (e == null) {
      // Now let's update it with some new data. In this case, only cheatMode and score
      // will get sent to the Parse Cloud. playerName hasn't changed.
      player.put("yearOfBirth", 1998);
      player.put("emailContact", "[email protected]");
      player.saveInBackground();
    } else {
      // Failed
    }
  }
});

Isn’t Parse SDK for Android working properly? Make sure you have installed it correctly by checking the complete Install Parse SDK guide to Android projects.
Also, feel free to check the official Parse Documentation regarding Parse SDK for Android.

1
2
3
4
5
6
ParseObjectUpdate update;
update.setClassName("SoccerPlayers");
update.setObjectId("QHjRWwgEtd");
update.add("emailContact", "[email protected]");
update.add("yearOfBirth", 1998);
update.send();

Isn’t Parse SDK for Arduino working properly? Make sure you have installed it correctly by checking the complete Install Parse SDK guide to Arduino projects.
Also, feel free to check the official Parse Documentation regarding Parse SDK for Arduino.

1
2
3
4
5
6
7
8
9
10
11
var query = PFQuery(className:"SoccerPlayers")
query.getObjectInBackgroundWithId("QHjRWwgEtd") {
  (player: PFObject?, error: NSError?) -> Void in
  if error != nil {
    print(error)
  } else if let player = player {
    player["yearOfBirth"] = 1998
    player["emailContact"] = "[email protected]"
    player.saveInBackground()
  }
}
1
2
3
4
5
6
ParseObjectUpdate update;
update.setClassName("SoccerPlayers");
update.setObjectId("QHjRWwgEtd");
update.add("emailContact", "[email protected]");
update.add("yearOfBirth", 1998);
update.send();


Isn’t Parse SDK for iOS working properly? Make sure you have installed it correctly by checking the complete Install Parse SDK guide to iOS Swift and iOS ObjC projects.
Also, feel free to check the official Parse Documentation regarding Parse SDK for iOS.

1
2
3
4
5
6
ParseQuery<ParseObject> SoccerPlayers = ParseObject.GetQuery("SoccerPlayers");
ParseObject soccerPlayers = await SoccerPlayers.GetAsync("QHjRWwgEtd");

soccerPlayers["yearOfBirth"] = 1998;
soccerPlayers["emailContact"] = "[email protected]";
await customer.SaveAsync();

Isn’t Parse SDK for .NET working properly? Make sure you have installed it correctly by checking the complete Install Parse SDK guide to .NET projects.
Also, feel free to check the official Parse Documentation regarding Parse SDK for .NET.

1
2
3
4
5
6
7
ParseQuery<ParseObject> soccerPlayers = ParseObject.GetQuery("SoccerPlayers");
soccerPlayers.GetAsync("QHjRWwgEtd").ContinueWith(t =>
{
  soccerPlayers["yearOfBirth"] = 1998;
  soccerPlayers["emailContact"] = "[email protected]";
  soccerPlayers.SaveAsync();
});

Isn’t Parse SDK for Unity working properly? Make sure you have installed it correctly by checking the complete Install Parse SDK guide to Unity projects.
Also, feel free to check the official Parse Documentation regarding Parse SDK for Unity.

1
2
3
4
5
6
7
8
9
10
11
12
13
// Create the object.
$soccerPlayers = new ParseObject("SoccerPlayers");
$soccerPlayers->set("playerName", "A. Wed");
$soccerPlayers->set("yearOfBirth", 1997);
$soccerPlayers->set("emailContact", "[email protected]");
$soccerPlayers->setArray("attributes", ["fast", "good conditioning"]);

$soccerPlayers->save();
// Now let's update it with some new data. In this case, only cheatMode and score
// will get sent to the cloud. playerName hasn't changed.
$soccerPlayers->set("yearOfBirth", 1997);
$soccerPlayers->set("emailContact", "[email protected]");
$soccerPlayers->save();

Isn’t Parse SDK for PHP working properly? Make sure you have installed it correctly by checking the complete Install Parse SDK guide to PHP projects.
Also, feel free to check the official Parse Documentation regarding Parse SDK for PHP.

curl -X PUT \
  -H "X-Parse-Application-Id: APPLICATION_ID" \
  -H "X-Parse-REST-API-Key: REST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"yearOfBirth":1998, "emailContact":"[email protected]"}' \
  https://parseapi.back4app.io/classes/SoccerPlayers/QHjRWwgEtd

Isn’t Parse SDK for REST API working properly? Make sure you have installed it correctly by checking the official Parse Documentation regarding Parse SDK for REST API.


Again, you don’t have to retrive the object by its objectId. Parse has many search alternatives to retrieve information from ParseObjects, which you can find out more about in the official Parse documentation for each distinct technology.

Step 4 - Delete Parse Objects

To delete a ParseObject, just retrieve it and then call the delete/destroy method.

For example, assuming you have saved an object and have its objectId, you can retrieve the ParseObject using a ParseQuery and delete it by using the code below. To do so, you just need to select the right guide to the technology of your project.

Don’t forget to insert the objectId of a ParseObject stored in your app Dashboard at Back4App website. To find it go to the class that the ParseObject you want to retrieve is associated with and copy its objectId, as shown in the imagine below.

The code below won’t work as expected if you haven’t installed Parse SDK correctly for the technology of your project. To verify if you have done it correctly, go to Add Back4App to your App project tutorial to ensure followed the steps as required.


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
const SoccerPlayers = Parse.Object.extend("SoccerPlayers");
const soccerPlayers = new SoccerPlayers();

// Retrieve the object by id
soccerPlayers.get("QHjRWwgEtd")
.then((player) => {
  // The object was retrieved successfully and it is ready to update.
  player.destroy().then((player) => {
    // The object was deleted from the Parse Cloud.
  }, (error) => {
    // The delete failed.
    // error is a Parse.Error with an error code and message.
  })
}, (error) => {
  // The object was not retrieved successfully.
});;

Isn’t Parse SDK for JavaScript working properly? Make sure you have installed it correctly by checking the complete Install Parse SDK guide to JavaScript projects.
Also, feel free to check the official Parse Documentation regarding Parse SDK for JavaScript.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
ParseQuery<ParseObject> soccerPlayers = ParseQuery.getQuery("SoccerPlayers");
// Query parameters based on the item name
soccerPlayers.whereEqualTo("objectId", "QHjRWwgEtd");
soccerPlayers.findInBackground(new FindCallback<ParseObject>() {
  @Override
  public void done(final List<ParseObject> player, ParseException e) {
    if (e == null) {
      player.get(0).deleteInBackground(new DeleteCallback() {
        @Override
        public void done(ParseException e) {
          if (e == null) {
            // Success
          } else {
            // Failed
          }
        }
      });
    } else {
      // Something is wrong
    }
  };
}

Isn’t Parse SDK for Android working properly? Make sure you have installed it correctly by checking the complete Install Parse SDK guide to Android projects.
Also, feel free to check the official Parse Documentation regarding Parse SDK for Android.

1
2
3
4
ParseObjectDelete del;
del.setClassName("SoccerPlayers");
del.setObjectId("QHjRWwgEtd");
del.send();

Isn’t Parse SDK for Arduino working properly? Make sure you have installed it correctly by checking the complete Install Parse SDK guide to Arduino projects.
Also, feel free to check the official Parse Documentation regarding Parse SDK for Arduino.

1
2
3
4
5
6
7
8
let query = PFQuery(className: "SoccerPlayers")
query.whereKey("objectId", equalTo: "QHjRWwgEtd")
query.findObjectsInBackgroundWithBlock {
(objects: [AnyObject]?, error: NSError?) -> Void in
  for player in players {
      player.deleteEventually()
  }
}
1
2
3
4
ParseObjectDelete del;
del.setClassName("SoccerPlayers");
del.setObjectId("QHjRWwgEtd");
del.send();


Isn’t Parse SDK for iOS working properly? Make sure you have installed it correctly by checking the complete Install Parse SDK guide to iOS Swift and iOS ObjC projects.
Also, feel free to check the official Parse Documentation regarding Parse SDK for iOS.

1
2
3
4
ParseQuery<ParseObject> query = ParseObject.GetQuery("SoccerPlayers");
ParseObject myObject = await query.GetAsync("QHjRWwgEtd");

await myObject.DeleteAsync();

Isn’t Parse SDK for .NET working properly? Make sure you have installed it correctly by checking the complete Install Parse SDK guide to .NET projects.
Also, feel free to check the official Parse Documentation regarding Parse SDK for .NET.

1
2
3
4
5
ParseQuery<ParseObject> query = ParseObject.GetQuery("SoccerPlayers");
query.GetAsync("QHjRWwgEtd").ContinueWith(t =>
{
  Task deleteTask = t.DeleteAsync();
});

Isn’t Parse SDK for Unity working properly? Make sure you have installed it correctly by checking the complete Install Parse SDK guide to Unity projects.
Also, feel free to check the official Parse Documentation regarding Parse SDK for Unity.

1
$soccerPlayers->destroy();

Isn’t Parse SDK for PHP working properly? Make sure you have installed it correctly by checking the complete Install Parse SDK guide to PHP projects.
Also, feel free to check the official Parse Documentation regarding Parse SDK for PHP.

curl -X DELETE \
  -H "X-Parse-Application-Id: APPLICATION_ID" \
  -H "X-Parse-REST-API-Key: REST_API_KEY" \
  https://parseapi.back4app.io/classes/SoccerPlayers/QHjRWwgEtd

Isn’t Parse SDK for REST API working properly? Make sure you have installed it correctly by checking the official Parse Documentation regarding Parse SDK for REST API.


Again, you don’t have to retrive the object by its objectId. Parse has many search alternatives to retrieve information from ParseObjects, which you can find out more about in the official Parse documentation for each distinct technology.

Conclusion

At this point, you have learned how to CRUD (Create, Read, Update and Delete) Objects using Parse SDK. In case you face any trouble while deploying your code, please contact our team via chat!