Skip to content

Commit 7cef03e

Browse files
committed
Add clarification around types for relationship properties
1 parent d37a175 commit 7cef03e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/ROOT/pages/types/relationships.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ You can add relationship properties to the example in two steps:
6565
. Add a type definition decorated with the `@relationshipProperties` directive, containing the desired relationship properties.
6666
. Add a `properties` argument to both "sides" (or just one side, if you prefer) of the `@relationship` directive which points to the newly defined interface.
6767

68+
Relationship properties fields can only be primitive types or their list variants. You cannot map complex types such as object types into the types modelling relationship properties.
69+
6870
For example, suppose you want to distinguish which roles an actor played in a movie:
6971

7072
[source, graphql, indent=0]

0 commit comments

Comments
 (0)