GraphQ...ateTime(3pm)

πŸ“¦
version 0.54 Β· 2 versions
  • 0.54 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.53 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ NAME ✨

hey bestie, welcome to the GraphQ...ateTime(3pm) page, aka the User Contributed Perl Documentation moment you didn't know you needed. 🫢

  • GraphQL::Plugin::Type::DateTime β€” a GraphQL DateTime scalar type. that's the name, and it's lowkey iconic. πŸ’…

✨ SYNOPSIS ✨

okay so here's the whole vibe, copy-paste ready:

         use GraphQL::Schema;
         use GraphQL::Plugin::Type::DateTime;
         use GraphQL::Execution qw(execute);
         my $schema = GraphQL::Schema->from_doc(<<'EOF');
         type Query { dateTimeNow: DateTime }
         EOF
         post '/graphql' => sub {
           send_as JSON => execute(
             $schema,
             body_parameters->{query},
             { dateTimeNow => sub { DateTime->now } },
             undef,
             body_parameters->{variables},
             body_parameters->{operationName},
             undef,
           );
         };

✨ DESCRIPTION ✨

so this thing implements a non-standard GraphQL scalar type that represents a point in time, canonically represented in ISO 8601 format, e.g. "20171114T07:41:10". periodt. πŸ“


okay bye bestie πŸ’– this page is from perl v5.34.0, dated 2022-03-27, and it's the GraphQ...ateTime(3pm) manual page. periodt. πŸ‘‘

πŸ“¦ where this page comes from