Skip to content

Commit 298782d

Browse files
DJTBpieh
authored andcommitted
[gatsby-transformer-json] Update docs: outdated Readme examples (#5403)
`{ internal: { type } }` exists but it would actually be "LettersJson" (according to my GraphiQL checks). Seems better to just remove this, so it at least has parity with gatsby-transformer-yaml readme.
1 parent fb09126 commit 298782d

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

packages/gatsby-transformer-json/README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ So if your project has a `letters.json` with `[{ "value": "a" }, { "value": "b"
3030

3131
```javascript
3232
[
33-
{ value: "a", type: "Letters" },
34-
{ value: "b", type: "Letters" },
35-
{ value: "c", type: "Letters" },
33+
{ value: "a" },
34+
{ value: "b" },
35+
{ value: "c" },
3636
];
3737
```
3838

@@ -72,15 +72,12 @@ Then the following three nodes would be created.
7272
[
7373
{
7474
value: "a",
75-
type: "Letters",
7675
},
7776
{
7877
value: "b",
79-
type: "Letters",
8078
},
8179
{
8280
value: "c",
83-
type: "Letters",
8481
},
8582
];
8683
```

0 commit comments

Comments
 (0)