Skip to content

Customize anchor names to prevent duplicate links #770

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

Merged
Merged
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
22 changes: 11 additions & 11 deletions _includes/graphql/customisation.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ interface ParseGraphQLConfiguration {

// By default, all write mutation types are
// exposed for all included classes. Use this to disable
// the available mutation types for this class and optionally
// the available mutation types for this class and optionally
// override the default generated name with aliases.
mutation?: {
create?: boolean;
Expand Down Expand Up @@ -99,7 +99,7 @@ We have provided a public API in `ParseGraphQLServer` which accepts the above JS
// ... ParseGraphQLConfiguration
};

await parseGraphQLServer.setGraphQLConfig(config);
await parseGraphQLServer.setGraphQLConfig(config);
```

### Include or Exclude Classes
Expand Down Expand Up @@ -194,7 +194,7 @@ In the following example, we set the fields `name` and `age` as the only two tha
}
```

### Queries
<h3 id="queries-config">Queries</h3>

By default, the schema exposes a `get` and `find` operation for each class, for example, `get_User` and `find_User`. You can disable either of these for any class in your schema, like so:

Expand All @@ -207,14 +207,14 @@ By default, the schema exposes a `get` and `find` operation for each class, for
"query": {
"get": true,
"find": false
}
}
},
{
"className": "Review",
"query": {
"get": false,
"find": true
}
}
}
]
}
Expand All @@ -229,19 +229,19 @@ By default, generated query names use pluralized version of `className`. You can
"className": "Likes",
"query": {
"getAlias": "like"
}
}
},
{
"className": "Data",
"query": {
"findAlias": "findData"
}
}
}
]
}

```
### Mutations
<h3 id="mutations-config">Mutations</h3>

By default, the schema exposes a `create`, `update` and `delete` operation for each class, for example, `create_User`, `update_User` and `delete_User`. You can disable any of these mutations for any class in your schema, like so:

Expand All @@ -255,15 +255,15 @@ By default, the schema exposes a `create`, `update` and `delete` operation for e
"create": true,
"update": true,
"destroy": true
}
}
},
{
"className": "Review",
"mutation": {
"create": true,
"update": false,
"destroy": true
}
}
}
]
}
Expand All @@ -282,7 +282,7 @@ You can optionally override the default generated mutation names with aliases:
"createAlias": "newRecord",
"updateAlias": "changeRecord",
"destroyAlias": "eraseRecord"
}
}
}
]
}
Expand Down