UnauthorizedArgumentsExtensions
Type Alias: UnauthorizedArgumentsExtensions
UnauthorizedArgumentsExtensions:
object
Defined in: src/utilities/TalawaGraphQLError.ts:181
When the client is not authorized to perform an action with certain arguments.
Type declaration
code
code:
"unauthorized_arguments"
issues
issues:
object
[]
Example
throw new TalawaGraphQLError({
extensions: {
code: "unauthorized_arguments",
issues: [
{
argumentPath: ["input", "role"],
message: "You are not authorzied to change your user role.",
},
],
},
});