Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added an example on how to populate a relationship field in createItem #3334

Merged
merged 8 commits into from Aug 4, 2020
2 changes: 2 additions & 0 deletions packages/server-side-graphql-client/README.md
Expand Up @@ -134,6 +134,8 @@ const addUser = async userInput => {
addUser({ name: 'keystone user', email: 'keystone@test.com' });
```

**Note**: The `item` property is a graphQL create input. For Relationship fields it can contain nested mutations with create and connect operations. For examples see the [Relationship API documentation](/packages/fields/src/types/Relationship/README.md#create-and-append-a-related-item).

#### Config

[Shared Config Options](#shared-config-options) apply to this function.
Expand Down