GraphQ...ateTime(3pm)
β¨ 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
- debian bookworm: libgraphql-perl 0.54-1 Β· Artistic-2.0
- debian trixie: libgraphql-perl 0.54-1 Β· Artistic-2.0
- ubuntu noble: libgraphql-perl 0.54-1 Β· Artistic-2.0
- ubuntu resolute: libgraphql-perl 0.54-1 Β· Artistic-2.0
- ubuntu stonking: libgraphql-perl 0.54-1 Β· Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms