Skip to content

Commit

Permalink
Added some notes on how the contentful source plugin interacts with c…
Browse files Browse the repository at this point in the history
…ontentful's content models. (#3794)
  • Loading branch information
ghardin137 authored and calcsam committed Feb 1, 2018
1 parent 5bbc285 commit 0583a45
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/gatsby-source-contentful/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@ plugins: [
];
```

## Notes on Contentful Content Models

There are currently some things to keep in mind when building your content models at contentful.

1. At the moment, Fields that do not have at least 1 populated instance will not be created in the graphql schema.

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.


## How to query

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

0 comments on commit 0583a45

Please sign in to comment.