Skip to content

Commit ecc9400

Browse files
authored
Customize anchor names to prevent duplicate links (#770)
1 parent 83cc22f commit ecc9400

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

_includes/graphql/customisation.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ interface ParseGraphQLConfiguration {
7171

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

102-
await parseGraphQLServer.setGraphQLConfig(config);
102+
await parseGraphQLServer.setGraphQLConfig(config);
103103
```
104104

105105
### Include or Exclude Classes
@@ -194,7 +194,7 @@ In the following example, we set the fields `name` and `age` as the only two tha
194194
}
195195
```
196196

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

199199
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:
200200

@@ -207,14 +207,14 @@ By default, the schema exposes a `get` and `find` operation for each class, for
207207
"query": {
208208
"get": true,
209209
"find": false
210-
}
210+
}
211211
},
212212
{
213213
"className": "Review",
214214
"query": {
215215
"get": false,
216216
"find": true
217-
}
217+
}
218218
}
219219
]
220220
}
@@ -229,19 +229,19 @@ By default, generated query names use pluralized version of `className`. You can
229229
"className": "Likes",
230230
"query": {
231231
"getAlias": "like"
232-
}
232+
}
233233
},
234234
{
235235
"className": "Data",
236236
"query": {
237237
"findAlias": "findData"
238-
}
238+
}
239239
}
240240
]
241241
}
242242

243243
```
244-
### Mutations
244+
<h3 id="mutations-config">Mutations</h3>
245245

246246
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:
247247

@@ -255,15 +255,15 @@ By default, the schema exposes a `create`, `update` and `delete` operation for e
255255
"create": true,
256256
"update": true,
257257
"destroy": true
258-
}
258+
}
259259
},
260260
{
261261
"className": "Review",
262262
"mutation": {
263263
"create": true,
264264
"update": false,
265265
"destroy": true
266-
}
266+
}
267267
}
268268
]
269269
}
@@ -282,7 +282,7 @@ You can optionally override the default generated mutation names with aliases:
282282
"createAlias": "newRecord",
283283
"updateAlias": "changeRecord",
284284
"destroyAlias": "eraseRecord"
285-
}
285+
}
286286
}
287287
]
288288
}

0 commit comments

Comments
 (0)