Closed bete7512 closed 1 year ago
Hi,
You need to define type uuid
alias so the library can infer the GraphQL type.
type uuid string
variables := map[string]interface{}{
"user_id": uuid(parsedUserId.String()),
"password": password,
}
Okay Thanks very Good Answer it works fine
` func InsertUserPassword(userid, password string) (string,error){ client := config.GraphqlClient() parsedUserId, := uuid.Parse(user_id)
} `
but it throws Message: variable 'user_id' is declared as 'String!', but used where 'uuid!' is expected, Locations: [], Extensions: map[code:validation-failed path:$.selectionSet.update_authentications_by_pk.args.pk_columns.user_id] I tried by removing String()