graphql-compose / graphql-compose/graphql-compose

updateById: expects record but I want to update one field

Open
#310 1 comment 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.