Open GraemeFulton opened 3 years ago
I suspect this is an issue in the default fragment generator @Timi-Duban , from package @vulcanjs/graphql
Another small issue: when document is not found, the hook will still try to update the lists using multiQueryUpdater => it should not
Describe the bug Updating user form fields gives the following error:
Cannot query field "userId" on type "User". Did you mean "username"?, Location: line 14, col 3, Path: undefined
To make it work, you have to manually add
userId
to your User schema.The default fragment somehow systematically includes userId but User is an exception: it doesn't have an userId in its schema
To Reproduce Steps to reproduce the behavior:
meteor-demo.tsx
, usinguseUpdate({model: User})
.Expected behavior The form should successfully update user fields without any modification to the user schema
Here is my demo form that was not working: