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