Add mutations

This commit is contained in:
Kevin Kandlbinder 2023-02-28 21:35:51 +01:00
parent 15407746e3
commit 7667ea7b90
Signed by: kevin
GPG key ID: 1460B586646E180D
4 changed files with 203 additions and 13 deletions

View file

@ -4005,13 +4005,21 @@ func (ec *executionContext) unmarshalInputEditCalendar(ctx context.Context, obj
asMap[k] = v
}
fieldsInOrder := [...]string{"name", "description"}
fieldsInOrder := [...]string{"id", "name", "description"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "id":
var err error
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id"))
it.ID, err = ec.unmarshalNID2string(ctx, v)
if err != nil {
return it, err
}
case "name":
var err error