Get Started

Read and Write Data Objects on Back4App

Introduction

In this guide, you will learn how to create, read, update and delete Data Objects on Back4App using the Parse SDK. Storing data on Back4App is built around Parse. Object class. Each Parse.Object contains key-value pairs of JSON-compatible data. This data is schemaless, which means that you don’t need to specify ahead of time what keys exist on each Parse.Object.

You can also specify the datatypes according to your application needs and persist types such as number, boolean, string, DateTime, Array, GeoPointers, and Object, encoding them to JSON before saving. Parse also supports store and query relational data by using the types Pointers and Relations.

Goals

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

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.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
async function saveNewPlayer() {
        //Create your Parse Object
        const soccerPlayers = new Parse.Object("SoccerPlayers");

        //Define its attributes
        soccerPlayers.set("playerName", "A. Wed");
        soccerPlayers.set("yearOfBirth", 1997);
        soccerPlayers.set("emailContact", "[email protected]");
        soccerPlayers.set("attributes", ["fast","good conditioning"])
        try{
            //Save the Object
            let result = await soccerPlayers.save()
            alert('New object created with objectId: ' + result.id);
        }catch(error){
            alert('Failed to create new object, with error code: ' + error.message);
        }
    } 

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

A ParseObject is created extending your new SoccerPlayer class and then defining each class attribute using the set method. The save method will create the class on Back4App and store your objects using the datatypes you defined. Below you can find another code samples to other Parse SDKs.


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//Initialize Parse
Parse.initialize('YOUR_APP_ID_HERE','YOUR_JAVASCRIPT_KEY_HERE');
Parse.serverURL = 'https://parseapi.back4app.com/';

async function saveNewPlayer() {
        //Create your Parse Object
        const soccerPlayers = new Parse.Object("SoccerPlayers");

        //Define its attributes
        soccerPlayers.set("playerName", "A. Wed");
        soccerPlayers.set("yearOfBirth", 1997);
        soccerPlayers.set("emailContact", "[email protected]");
        soccerPlayers.set("attributes", ["fast","good conditioning"])
        try{
            //Save the Object
            let result = await soccerPlayers.save()
            alert('New object created with objectId: ' + result.id);
        }catch(error){
            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 or React Native Quickstart Guide.

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.com/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.

Note that you didn’t have to set up a class called “SoccerPlayers” on Back4App before running this code, the ParseObject declaration created it for you. Also, the Parse Object you specified defined the datatypes for each column. You can also find the automatic fiedls created by Parse : createtAt, updatedAt, and objectId.

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

Step 2 - Read Parse Objects

You will now read the object that you saved. Start copying objectId on the Dashboard. You will retrieve the object using a ParseQuery. After querying the object you must access the object properties using the getX method for each data type.


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//Initialize Parse
Parse.initialize('YOUR_APP_ID_HERE','YOUR_JAVASCRIPT_KEY_HERE');
Parse.serverURL = 'https://parseapi.back4app.com/';


async function retrievePlayer() {
    //Create your Parse Query, and define the class it will be searched
    const soccerPlayers = new Parse.Query("SoccerPlayers");

    try {
      //Query the soccerPlayers object using the objectId you've copied
      const player = await query.get("HMcTr9rD3s");
      //access each object propertie using the get method
      const name = player.get("namePlayer");
      const email = player.get("emailContact");
      const birth = player.get("yearOfBirth");
      const attributes = player.get("attributes");

      alert('Name: ' ${name}', email: ' ${email}',birth: ' ${birth}', attributes: '${attributes});
    } catch (error) {
      alert(`Failed to retrieve the 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
ParseQuery<ParseObject> query = ParseQuery.getQuery("SoccerPlayers");
query.whereEqualTo("objectId", "HMcTr9rD3s");
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("HMcTr9rD3s");
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("HMcTr9rD3s") {
  (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("HMcTr9rD3s");
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("HMcTr9rD3s");

// 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("HMcTr9rD3s").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("HMcTr9rD3s");
  // 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/HMcTr9rD3s

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 our guides or on the official Parse documentation related to ParseQueries. You can find the corresponding links below.



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

Step 3 - Update Parse Objects

To update a ParseObject, you just need to retrieve the object using the objectId, then define which new values you want for each attribute. and then call the save() method. Let’s update the SoccerPlayer object we’ve created.


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//Initialize Parse
Parse.initialize('YOUR_APP_ID_HERE','YOUR_JAVASCRIPT_KEY_HERE');
Parse.serverURL = 'https://parseapi.back4app.com/';

async function updatePlayer() {
        //Retrieve your Parse Object
        const player = new Parse.Object("SoccerPlayers");

        //set the object
        player.set('objectId','HMcTr9rD3s');
        //define the new values
        player.set("yearOfBirth", 1998);
        player.set("emailContact", "[email protected]");
        try{
            //Save the Object
            let result = await player.save();
            alert('Object updated with objectId: ' + result.id);
        }catch(error){
            alert('Failed to update 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
ParseQuery<ParseObject> query = ParseQuery.getQuery("SoccerPlayers");
// Retrieve the object by id
query.getInBackground("HMcTr9rD3s", 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("HMcTr9rD3s");
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("HMcTr9rD3s") {
  (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("HMcTr9rD3s");
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("HMcTr9rD3s");

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("HMcTr9rD3s").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/HMcTr9rD3s


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.

Step 4 - Delete Parse Objects

To delete a ParseObject, just set its objectId and then call the destroy() method.


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//Initialize Parse
Parse.initialize('YOUR_APP_ID_HERE','YOUR_JAVASCRIPT_KEY_HERE');
Parse.serverURL = 'https://parseapi.back4app.com/';

async function deletePlayer() {
        //Retrieve your Parse Object
        const player = new Parse.Object("SoccerPlayers");

        //set its objectId
        player.set('objectId','HMcTr9rD3s');
        try{
            //destroy the object
            let result = await player.destroy();
            alert('Object deleted with objectId: ' + result.id);
        }catch(error){
            alert('Failed to delete 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
19
20
21
22
ParseQuery<ParseObject> soccerPlayers = ParseQuery.getQuery("SoccerPlayers");
// Query parameters based on the item name
soccerPlayers.whereEqualTo("objectId", "HMcTr9rD3s");
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("HMcTr9rD3s");
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: "HMcTr9rD3s")
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("HMcTr9rD3s");
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("HMcTr9rD3s");

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("HMcTr9rD3s").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/HMcTr9rD3s

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!