0

I am trying to update an int in grafbase but it returns me Expected an Object for. Although when i created eveything works fine in the update i get this error.

export const updatePetMutation = `
mutation UpdatePet($id: ID!, $input: PetUpdateInput!) {
    petUpdate(by: { id: $id }, input: $input) {
        pet {
            name
            id
    
        createdBy {
         email
         name

         }
        }
    }
}

`;

1 Answer 1

0

Here's everything you need https://grafbase.com/docs/database/mutations.

Instead of input :{yourfield:yourint} you need to have: {yourfield:{set:yourint}}

Not the answer you're looking for? Browse other questions tagged or ask your own question.