Skip to content

Commit 0583a45

Browse files
ghardin137calcsam
authored andcommitted
Added some notes on how the contentful source plugin interacts with contentful's content models. (#3794)
1 parent 5bbc285 commit 0583a45

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/gatsby-source-contentful/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,15 @@ plugins: [
4444
];
4545
```
4646

47+
## Notes on Contentful Content Models
48+
49+
There are currently some things to keep in mind when building your content models at contentful.
50+
51+
1. At the moment, Fields that do not have at least 1 populated instance will not be created in the graphql schema.
52+
53+
2. When using reference fields, be aware that this source plugin will automatically create the reverse reference. You do not need to create references on both content types. For simplicity, it is easier to put the reference field on the child in child/parent relationships.
54+
55+
4756
## How to query
4857

4958
Two standard data types will be available from Contentful: `ContentType` and

0 commit comments

Comments
 (0)