Open
Description
As you can see in the image above:
The variable is_create_update_xero
is not in the variable definitions of updateUser.
Here is the code that I use:
async updateUser () {
await User.fetch({ id: this.authUser.id })
await User.insertOrUpdate({
where: this.authUser.id,
data: {
...this.authUser,
is_email_verified: true
}
})
const user = User
.query()
.where('id', this.authUser.id)
.first()
await user.$push({ is_create_update_xero: false })
}
Mutation Type Def
updateUser(
id: ID!,
user: UserInput,
is_create_update_xero: Boolean
): User
aaaaaaaand another weird thing about it is when i do this in another place on the app(authenticated page), it adds the variable definition for is_create_update_xero.
not sure if having an authenticated page changes anything.
Please help :(
Metadata
Assignees
Labels
No labels