mirror of
https://github.com/wassname/talk.git
synced 2026-06-29 12:42:37 +08:00
12 lines
187 B
JavaScript
12 lines
187 B
JavaScript
const UserError = {
|
|
__resolveType({ field_name }) {
|
|
if (field_name) {
|
|
return 'ValidationUserError';
|
|
}
|
|
|
|
return 'GenericUserError';
|
|
},
|
|
};
|
|
|
|
module.exports = UserError;
|