Skip to content

Commit 65b6141

Browse files
authored
fix(docs): Lowercase typename (#35821)
Lowercase typename
1 parent 8166d4a commit 65b6141

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/docs/reference/graphql-data-layer/schema-customization.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,7 +1067,7 @@ export const query = graphql`
10671067
name
10681068
firstName
10691069
email
1070-
__typeName
1070+
__typename
10711071
... on AuthorJson {
10721072
joinedAt
10731073
}
@@ -1085,12 +1085,12 @@ export const query = graphql`
10851085
`
10861086
```
10871087

1088-
Including the `__typeName` introspection field allows to check the node type when iterating
1088+
Including the `__typename` introspection field allows to check the node type when iterating
10891089
over the query results in your component:
10901090

10911091
```js
10921092
data.allTeamMember.nodes.map(node => {
1093-
switch (node.__typeName) {
1093+
switch (node.__typename) {
10941094
case `AuthorJson`:
10951095
return <Author {...node} />
10961096
case `ContributorJson`:

0 commit comments

Comments
 (0)