graphql-compose / graphql-compose/graphql-compose
updateById: expects record but I want to update one field
Open
- Dominant language
- TypeScript
- Stars
- 1.2k
- Forks
- 75
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 3
Description
Hello, I followed a tutorial and now I can use GraphQL. it was pretty straightforward but I'm having troubles updating a record in my db. Here is my query: I just want to update the album on the recordId mentioned. I don't get it. can somebody help me?
what if I want to update 2 fields (say track number and album) instead of one field?
`mutation {
songUpdateById(_id: "5ffaef4fdcf92f89fd19a816",
record: {
album: "Ready 2 Go"
}
) {
_id,
title,
artist,
album
}
}`
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.