# Relationships in @neo4j/graphql 3.6, using Movies database

**URL:** <https://community.neo4j.com/t/relationships-in-neo4j-graphql-3-6-using-movies-database/59246>\
**Category:** Drivers & Stacks\
**Tags:** migrated\
**Created:** [August 2, 2022, 12:56am UTC](https://community.neo4j.com/t/relationships-in-neo4j-graphql-3-6-using-movies-database/59246 "2022-08-02T00:56:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChakaBrah](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/chakabrah/32/23084_2.png) [@ChakaBrah](https://community.neo4j.com/u/ChakaBrah)\
**Post date:** [August 2, 2022, 12:56am UTC](https://community.neo4j.com/t/relationships-in-neo4j-graphql-3-6-using-movies-database/59246/1 "2022-08-02T00:56:37Z")

</div>

Hi all,

As I was following this tutorial [https://neo4j.com/developer/graphql/,](https://neo4j.com/developer/graphql/,) I noticed something in the latest JavaScript graphql driver. Namely, when I change the relation definitions on the Movies ACTED\_IN relationship in the typeDef from "actors: [Person!]!" to "actors: [Person]", I get the error message:

_Error: List type relationship fields must be non-nullable and have non-nullable entries, please change type of Movie.actors to [Person!]!_

However, when I try to create a movie (using the required [Person!]! in the typeDef) without a "ACTED\_IN" relationship in the GraphQL playground, using the auto-generated createMovies mutation, that seems to work fine. This is also confirmed in Neo4j Browser.

This is actually my preferred behavior, but am I correct to see that this is a deviation from the normally strictly strongly typed GraphQL convention (e.g. forcing fields denoted by ! to be required at all times)? Is this because it has the @relationship directive, or does this have a different reason?

Love the package, trying to understand it more deeply.

Cheers,

Chaka

---

<div class="post-metadata">

**Author:** ![Aaronoooooo](https://avatars.discourse-cdn.com/v4/letter/a/e79b87/32.png) [@Aaronoooooo](https://community.neo4j.com/u/Aaronoooooo)\
**Post date:** [August 2, 2022, 1:58am UTC](https://community.neo4j.com/t/relationships-in-neo4j-graphql-3-6-using-movies-database/59246/2 "2022-08-02T01:58:57Z")

</div>

sdfa  
(migrated from khoros post [Re: Relationships in @neo4j/graphql 3.6, using Mov... - Neo4j - 58514](https://community.neo4j.com/t5/drivers-stacks/relationships-in-neo4j-graphql-3-6-using-movies-database/m-p/58516#M4878))

---

<div class="post-metadata">

**Author:** ![ChakaBrah](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/chakabrah/32/23084_2.png) [@ChakaBrah](https://community.neo4j.com/u/ChakaBrah)\
**Post date:** [October 16, 2022, 2:43pm UTC](https://community.neo4j.com/t/relationships-in-neo4j-graphql-3-6-using-movies-database/59246/3 "2022-10-16T14:43:10Z")

</div>

[@William\_Lyon](https://community.neo4j.com/t5/user/viewprofilepage/user-id/1885) It's been some time ago that I commented the above. Do you perhaps have some input on this? Really wondering!
