Skip to content

Commit 6f7af13

Browse files
committed
fix: use html for code-selector
1 parent 6ab43c6 commit 6f7af13

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

core/graphql.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ You can of course disable or configure these operations.
161161

162162
For instance, in the following example, only the query of an item and the create mutation are enabled:
163163

164-
[codeSelector]
164+
<code-selector>
165165

166166
```php
167167
<?php
@@ -205,7 +205,7 @@ resources:
205205
</resources>
206206
```
207207

208-
[/codeSelector]
208+
</code-selector>
209209

210210
## Queries
211211

@@ -452,7 +452,7 @@ resources:
452452
</resources>
453453
```
454454

455-
[/codeSelector]
455+
</code-selector>
456456

457457
Note that you need to explicitly add the auto-generated queries and mutations if they are needed when configuring custom queries, like it's done for the [operations](#operations).
458458

@@ -699,7 +699,7 @@ resources:
699699
</resources>
700700
```
701701

702-
[/codeSelector]
702+
</code-selector>
703703

704704
Note that you need to explicitly add the auto-generated queries and mutations if they are needed when configuring custom mutations, like it's done for the [operations](#operations).
705705

@@ -802,7 +802,7 @@ resources:
802802
</resources>
803803
```
804804

805-
[/codeSelector]
805+
</code-selector>
806806

807807
### Subscribe
808808

@@ -980,7 +980,7 @@ resources:
980980
</resources>
981981
```
982982

983-
[/codeSelector]
983+
</code-selector>
984984

985985
Or at the resource attributes level (will be also applied in REST and for all operations):
986986

@@ -1033,7 +1033,7 @@ resources:
10331033
</resources>
10341034
```
10351035

1036-
[/codeSelector]
1036+
</code-selector>
10371037

10381038
## Events
10391039

@@ -1120,7 +1120,7 @@ resources:
11201120
</resources>
11211121
```
11221122

1123-
[/codeSelector]
1123+
</code-selector>
11241124

11251125
### Syntax for Filters with a List of Key / Value Arguments
11261126

@@ -1370,7 +1370,7 @@ resources:
13701370
</resources>
13711371
```
13721372

1373-
[/codeSelector]
1373+
</code-selector>
13741374

13751375
Or if you want to do it at the resource level:
13761376

@@ -1405,7 +1405,7 @@ resources:
14051405
</resources>
14061406
```
14071407

1408-
[/codeSelector]
1408+
</code-selector>
14091409

14101410
Once enabled, a `page` filter will be available in the collection query (its name [can be changed in the configuration](pagination.md)) and an `itemsPerPage` filter will be available too if [client-side-pagination](pagination.md#client-side) is enabled.
14111411

@@ -1486,7 +1486,7 @@ resources:
14861486
</resources>
14871487
```
14881488

1489-
[/codeSelector]
1489+
</code-selector>
14901490

14911491
#### For a Specific Resource Collection Operation
14921492

@@ -1530,7 +1530,7 @@ resources:
15301530
</resources>
15311531
```
15321532

1533-
[/codeSelector]
1533+
</code-selector>
15341534

15351535
### Partial Pagination
15361536

@@ -1627,7 +1627,7 @@ resources:
16271627
</resources>
16281628
```
16291629

1630-
[/codeSelector]
1630+
</code-selector>
16311631

16321632
### Securing Properties (Including Associations)
16331633

@@ -1730,7 +1730,7 @@ properties:
17301730
</properties>
17311731
```
17321732

1733-
[/codeSelector]
1733+
</code-selector>
17341734

17351735
[codeselector]
17361736

@@ -1811,7 +1811,7 @@ properties:
18111811
</properties>
18121812
```
18131813

1814-
[/codeSelector]
1814+
</code-selector>
18151815

18161816
The above example only allows admins to see the full collection of each resource (`QueryCollection`).
18171817
Users must be granted the `VIEW` attribute on a resource to be able to query it directly (`Query`) - which would use a `Voter` to make this decision.
@@ -1970,7 +1970,7 @@ resources:
19701970
</resources>
19711971
```
19721972

1973-
[/codeSelector]
1973+
</code-selector>
19741974

19751975
In this case, the REST endpoint will be able to get the two attributes of the book and to modify only its title.
19761976

@@ -2042,7 +2042,7 @@ resources:
20422042
</resources>
20432043
```
20442044

2045-
[/codeSelector]
2045+
</code-selector>
20462046

20472047
Creating a book with its author will be done like this, where `/authors/32` is the IRI of an existing resource:
20482048

@@ -2124,7 +2124,7 @@ resources:
21242124
</resources>
21252125
```
21262126

2127-
[/codeSelector]
2127+
</code-selector>
21282128

21292129
And in the author resource:
21302130

0 commit comments

Comments
 (0)