Skip to content

Instantly share code, notes, and snippets.

@jjn1056
Created June 19, 2019 15:47
Show Gist options
  • Save jjn1056/74639799b5b5a3d9a78d39d549707630 to your computer and use it in GitHub Desktop.
Save jjn1056/74639799b5b5a3d9a78d39d549707630 to your computer and use it in GitHub Desktop.
use GraphQL::Type::Scalar qw($String);
my $type = GraphQL::Type::Object->new(
name => 'Object',
fields => {
field_name => {
type => $String,
directives => [
{
name => 'isAuthorized',
},
],
},
},
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment