keystonejs / keystonejs/keystone

Add support for create/update of `id` using GraphQL

Open
#9,270 2 comments 1 reaction 1 assignee Claimed by @gautamsi View on GitHub
needs more info
Dominant language
TypeScript
Stars
10k
Forks
1.3k
Avg merge
19h 14m
Merged PRs (30d)
19

Description

1. Set `idField` `kind` to `string` or `number` , do not set any `resolveInput.create` hook to assign id filed value
2. try to create an item
3. it should throw error that idfield is not provided
4. Try to create item with graphql playground
5. Notice no id field input for creating new item
6.

Expect to be able to create item with `id` field in input.

in my case I am generating a log tabl;e entry on order change which can always provide custom id while creating an item instead of setting a value as part of `resolveInput`.

Alternatively you can use `context.prisma` to create such item.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.