Skip to content

Commit 104f51d

Browse files
lucasconstantinofubhy
authored andcommitted
Fixed fragment usage and applied GQL syntax highlight (#553)
1 parent 04daa58 commit 104f51d

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

doc/upgrade/beta6.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ The type structure of the `Url` object changed. While before there have been jus
77

88
In a nutshell, if you were using this kind of query:
99

10-
```
10+
```gql
1111
query {
1212
route(path: "/node/1") {
1313
entity {
@@ -18,10 +18,10 @@ query {
1818
```
1919

2020
It has to become this:
21-
```
21+
```gql
2222
query {
2323
route(path: "/node/1") {
24-
... EntityCanonicalUrl {
24+
... on EntityCanonicalUrl {
2525
entity {
2626
entityLabel
2727
}
@@ -34,7 +34,7 @@ query {
3434
The interfaces for entities have been aligned with the entity interfaces in Drupal. There is an `EntityOwnable`, `EntityPublishable` and `EntityRevisionable` interface which now hold the respective fields.
3535

3636
Before:
37-
```
37+
```gql
3838
query {
3939
entity:route(path: "/node/1") {
4040
... on EntityCanonicalUrl {
@@ -55,7 +55,7 @@ query {
5555

5656
After:
5757

58-
```
58+
```gql
5959
query {
6060
entity:route(path: "/node/1") {
6161
... on EntityCanonicalUrl {
@@ -85,35 +85,35 @@ Emumerations are uppercased now. For the schema generated by `graphql_core` this
8585

8686
Before:
8787

88-
```
88+
```gql
8989
query {
9090
entity:route(path: "/node/1") {
9191
... on EntityCanonicalUrl {
9292
entity {
9393
entityTranslation(language: de) {
94-
... on NodeArticle {
94+
... on NodeArticle {
9595
entityLabel
9696
fieldImage {
9797
derivative(style: thumbnail) {
9898
url
9999
}
100100
}
101-
}
102-
}
103101
}
104-
}
102+
}
103+
}
104+
}
105105
}
106106
}
107107
```
108108

109109
After:
110-
```
110+
```gql
111111
query {
112112
entity:route(path: "/node/1") {
113113
... on EntityCanonicalUrl {
114114
entity {
115115
entityTranslation(language: DE) {
116-
... on NodeArticle {
116+
... on NodeArticle {
117117
entityLabel
118118
fieldImage {
119119
derivative(style: THUMBNAIL) {
@@ -122,8 +122,8 @@ query {
122122
}
123123
}
124124
}
125-
}
126-
}
125+
}
126+
}
127127
}
128128
}
129129
```
@@ -132,7 +132,7 @@ query {
132132
Entity fields that contain only one property are simplified and directly emit that value.
133133

134134
Before:
135-
```
135+
```gql
136136
... on NodeArticle {
137137
fieldPlainText {
138138
value
@@ -141,7 +141,7 @@ Before:
141141
```
142142

143143
After:
144-
```
144+
```gql
145145
... on NodeArticle {
146146
fieldPlainText
147147
}

0 commit comments

Comments
 (0)