You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-64
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ A big *thank you* 🙏 to our [sponsors](#sponsors) and [backers](#backers) who
47
47
-[PostgreSQL](#postgresql)
48
48
-[Locally](#locally)
49
49
-[Docker Container](#docker-container)
50
-
-[Saving an Object](#saving-an-object)
50
+
-[Saving and Querying Objects](#saving-and-querying-objects)
51
51
-[Connect an SDK](#connect-an-sdk)
52
52
-[Running Parse Server elsewhere](#running-parse-server-elsewhere)
53
53
-[Sample Application](#sample-application)
@@ -186,70 +186,9 @@ That's it! You are now running a standalone version of Parse Server on your mach
186
186
187
187
**Using a remote MongoDB?** Pass the `--databaseURI DATABASE_URI` parameter when starting `parse-server`. Learn more about configuring Parse Server [here](#configuration). For a full list of available options, run `parse-server --help`.
188
188
189
-
### Saving an Object
189
+
### Saving and Querying Objects
190
190
191
-
Now that you're running Parse Server, it is time to save your first object. We'll use the [REST API](http://docs.parseplatform.org/rest/guide), but you can easily do the same using any of the [Parse SDKs](http://parseplatform.org/#sdks). Run the following:
Keeping tracks of individual object ids is not ideal, however. In most cases you will want to run a query over the collection, like so:
230
-
231
-
```bash
232
-
$ curl -X GET \
233
-
-H "X-Parse-Application-Id: APPLICATION_ID" \
234
-
http://localhost:1337/parse/classes/GameScore
235
-
```
236
-
```json
237
-
// The response will provide all the matching objects within the `results` array:
238
-
{
239
-
"results": [
240
-
{
241
-
"objectId": "2ntvSpRGIK",
242
-
"score": 1337,
243
-
"playerName": "Sean Plott",
244
-
"cheatMode": false,
245
-
"updatedAt": "2016-03-11T23:51:48.050Z",
246
-
"createdAt": "2016-03-11T23:51:48.050Z"
247
-
}
248
-
]
249
-
}
250
-
```
251
-
252
-
To learn more about using saving and querying objects on Parse Server, check out the [Parse documentation](http://docs.parseplatform.org).
191
+
Now that you're running Parse Server, it is time to save your first object. The easiest way is to use the [REST API](http://docs.parseplatform.org/rest/guide), but you can easily do the same using any of the [Parse SDKs](http://parseplatform.org/#sdks). To learn more check out the [documentation](http://docs.parseplatform.org).
0 commit comments