Skip to content

Refactor AWS Deployment Guide + Block Code Format #879

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 13 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions _includes/common/data.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ You may import data into your Parse app by using CSV or JSON files. To create a

The JSON format is an array of objects in our REST format or a JSON object with a `results` that contains an array of objects. It must adhere to the [JSON standard](http://json.org/). A file containing regular objects could look like:

```js
```json
{ "results": [
{
"score": 1337,
Expand All @@ -63,7 +63,7 @@ In addition to the exposed fields, objects in the Parse User class can also have

A file containing a `User` object could look like:

```js
```json
{ "results":
[{
"username": "cooldude",
Expand Down
4 changes: 2 additions & 2 deletions _includes/graphql/classes.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Classes

Since your application does not have a schema yet, you can use the `createClass` mutation to create your first class through the GraphQL API. Run the following:
```js
```json
// Header
{
"X-Parse-Application-Id": "APPLICATION_ID",
Expand Down Expand Up @@ -34,7 +34,7 @@ mutation createGameScoreClass {
}
}
```
```js
```json
// Response
{
"data": {
Expand Down
8 changes: 4 additions & 4 deletions _includes/graphql/customisation.md
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ extend type Query {
Parse.Cloud.define("hello", () => "Hello, world!");
```

```js
```json
// Header
{
"X-Parse-Application-Id": "APPLICATION_ID",
Expand All @@ -342,7 +342,7 @@ query hello {

The code above should resolve to this:

```js
```json
// Response
{
"data": {
Expand Down Expand Up @@ -418,7 +418,7 @@ Parse.Cloud.define("addToCart", async (req) => {
});
```

```js
```json
// Header
{
"X-Parse-Application-Id": "APPLICATION_ID",
Expand All @@ -437,7 +437,7 @@ mutation addItemToCart {

The code above should resolve to something similar to this:

```js
```json
// Response
{
"data": {
Expand Down
16 changes: 8 additions & 8 deletions _includes/graphql/files.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ The GraphQL API supports file upload via [GraphQL Upload](https://github.com/jay
## Add a File field to a Class
First of all we will update our `GameScore` class with a `screenshot` field of type `File`.

```js
```json
// Header
{
"X-Parse-Application-Id": "APPLICATION_ID",
Expand All @@ -29,7 +29,7 @@ mutation updateGameScoreClass {
}
}
```
```js
```json
// Response
{
"data": {
Expand All @@ -46,7 +46,7 @@ mutation updateGameScoreClass {

The GraphQL API supports nested mutation for the `File` type, so you can send the file along with the Parse Object or just upload the file and get the returned information.

```js
```json
// Header
{
"X-Parse-Application-Id": "APPLICATION_ID",
Expand All @@ -65,7 +65,7 @@ mutation createFile($file: Upload!) {
}
}
```
```js
```json
// Response
{
"data": {
Expand All @@ -83,7 +83,7 @@ mutation createFile($file: Upload!) {

You can add an existing file to an object.

```js
```json
// Header
{
"X-Parse-Application-Id": "APPLICATION_ID",
Expand Down Expand Up @@ -116,7 +116,7 @@ mutation createGameScore {
}
}
```
```js
```json
// Response
{
"data": {
Expand All @@ -134,7 +134,7 @@ mutation createGameScore {

## Create and add a file
Lets create a new `GameScore` object and upload the file.
```js
```json
// Header
{
"X-Parse-Application-Id": "APPLICATION_ID",
Expand Down Expand Up @@ -164,7 +164,7 @@ mutation createGameScore($file: Upload! ) {
}
}
```
```js
```json
// Response
{
"data": {
Expand Down
4 changes: 2 additions & 2 deletions _includes/graphql/health-check.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Now that you have set up your GraphQL environment, it is time to run your first query. Execute the following code in your GraphQL Playground to check your API's health:

```js
```json
// Header
{
"X-Parse-Application-Id": "APPLICATION_ID",
Expand All @@ -16,7 +16,7 @@ query healthy {
health
}
```
```js
```json
// Response
{
"data": {
Expand Down
16 changes: 8 additions & 8 deletions _includes/graphql/objects.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ For each class in your application's schema, Parse Server automatically generate

For example, if you have a class named `GameScore` in the schema, Parse Server automatically generates a new mutation called `createGameScore`, and you should be able to run the code below in your GraphQL Playground:

```js
```json
// Header
{
"X-Parse-Application-Id": "APPLICATION_ID",
Expand Down Expand Up @@ -45,7 +45,7 @@ mutation createAGameScore {
}
}
```
```js
```json
// Response
{
"data": {
Expand Down Expand Up @@ -78,7 +78,7 @@ For each class in your application's schema, Parse Server automatically generate

For example, if you have a class named `GameScore` in the schema, Parse Server automatically generates a new mutation called `updateGameScore`.

```js
```json
// Header
{
"X-Parse-Application-Id": "APPLICATION_ID",
Expand All @@ -101,7 +101,7 @@ mutation updateAGameScore {
}
}
```
```js
```json
// Response
{
"data": {
Expand All @@ -122,7 +122,7 @@ For each class in your application's schema, Parse Server automatically generate

For example, if you have a class named `GameScore` in the schema, Parse Server automatically generates a new mutation called `deleteGameScore`.

```js
```json
// Header
{
"X-Parse-Application-Id": "APPLICATION_ID",
Expand All @@ -143,7 +143,7 @@ mutation deleteAGameScore {

The code above should resolve to something similar to this:

```js
```json
// Response
{
"data": {
Expand All @@ -163,7 +163,7 @@ The code above should resolve to something similar to this:

The GraphQL API supports nested mutations, so you can create objects with complex relationships in one request. Assuming that we have classes `Country`, `City` and `Company`.

```js
```json
// Header
{
"X-Parse-Application-Id": "APPLICATION_ID",
Expand Down Expand Up @@ -208,7 +208,7 @@ mutation aNestedMutation {
}
}
```
```js
```json
// Response
{
"data": {
Expand Down
Loading