GraphQL::Error - GraphQL error object
use GraphQL::Error; die GraphQL::Error->new(message => 'Something is not right...');
Class implementing GraphQL error object.
If there is an original error to be preserved.
Is the supplied scalar an error object?
If supplied scalar is an error object, return. If not, return one with it as message. If an object, message will be stringified version of that, it will be preserved as original_error.
original_error
Converts to string.
To install GraphQL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm GraphQL
CPAN shell
perl -MCPAN -e shell install GraphQL
For more information on module installation, please visit the detailed CPAN module installation guide.