keystonejs / keystonejs/keystone
Add support for create/update of `id` using GraphQL
Open
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
Assessment
This issue has not been assessed yet.