Authenticated request with custom check on X-Hasura-User-ID not working #9244
-
Hi, I trying to do an authenticated request with I get a Mutation :
But I get this error:
Yet the JWT:
The mutation works using the Hasura console with the I don't know why I have this error, do you have any idea how to fix it? 🙏 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
Thanks for asking. Since objects: [
// inside array structure
{
name: "Typescript", // pass your actual object that you want to insert (which matches schema)
}
] Please let me know if that doesn't work for you! UPDATE (post-solved): If you intend to pass value to that field from insert mutation, then please remove that column from Column presets. |
Beta Was this translation helpful? Give feedback.
Hey @valentin-harrang
Thanks for asking.
Since
loved_language_insert_input
schema is object wrapped around array structure, you'll need to pass likePlease let me know if that doesn't work for you!
UPDATE (post-solved):
When you add column preset for column, then while performing insert mutation if you are passing value to that field via query variables, it will only accept the value which had been set in column preset. Hence, introspection query in graphiQL will show you validation failed error because that column has a…