Skip to content

Commit

Permalink
added note about circular dependencies to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
petrsvihlik committed Dec 14, 2018
1 parent e06d4da commit 4d82aa3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ Under the `related_project_references` you'd find just the original data served

Should a *Linked items* element in KC contain items of only *one* type, you'll be able to specify elements and other properties of that type directly (directly under the `related_project_references_nodes` in the above example). However, once you add linked items of multiple types, you'll have to specify their properties using the `... on [type name]` syntax (so called "inline fragments" in the GraphQL terminology).

_Please note that it's not possible to model circular dependency in Gatsby. Modeled circular dependency would lead to an error while generating a GraphQL model._

#### Content items in Rich text elements relationships

As with the previous example, all rich text properties with content items linked in the element also have an accompanying `_nodes` property.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "gatsby-source-kentico-cloud",
"description": "Gatsby source plugin for Kentico Cloud",
"version": "2.1.2",
"version": "2.1.3",
"repository": {
"type": "git",
"url": "https://github.com/Kentico/gatsby-source-kentico-cloud"
Expand Down

0 comments on commit 4d82aa3

Please sign in to comment.