GraphQ...ection(3pm)
π GraphQL::Introspection β the perl manual page, but make it bestie π
okay so this is GraphQL::Introspection, a Perl situation, living in the 3pm section of your manual (you know, the Perl module girlies π). It's the Perl implementation of GraphQL. Yes bestie, introspection. Looking at yourself. Main character energy fr fr πͺβ¨
β¨ NAME β¨
GraphQL::Introspection β a Perl implementation of GraphQL. That's it, that's the name, no notes π
πΈ SYNOPSIS πΈ
so you literally just do this and you're in:
use GraphQL::Introspection qw($QUERY);
my $schema_data = execute($schema, $QUERY);
like. that's the whole vibe. pull in $QUERY, hand it to execute with your $schema, and boom β $schema_data is yours π«Ά
π¦ DESCRIPTION π¦
It provides infrastructure implementing GraphQL's introspection. That's the official tea β β this module is the scaffolding that makes the whole "a schema can look at itself" thing happen.
π EXPORT π
β $QUERY
The GraphQL query to introspect the schema. This is the one you want, lowkey. It's the whole point π
π $TYPE_KIND_META_TYPE
The enum type describing kinds of type. It's the second-most-meta type here, after $TYPE_META_TYPE itself. So close to the meta-crown, but respectfully, second place ππ₯
π $DIRECTIVE_LOCATION_META_TYPE
The enum type describing directive locations. Where do directives go? This knows π
π $ENUM_VALUE_META_TYPE
The type describing enum values. Enum value lore, contained β¨
π§ $INPUT_VALUE_META_TYPE
The type describing input values. Inputs, but make it a type π«Ά
π $FIELD_META_TYPE
The type describing fields. Fields, described. Slay πΎ
π₯ $DIRECTIVE_META_TYPE
The type describing directives. Directives getting their own type, iconic π
π $TYPE_META_TYPE
The type describing a type. "Yo dawg..." ππ yes. A type about types. It's meta. It's the meta. We love a self-referential king.
π $SCHEMA_META_TYPE
The type describing the schema itself. The schema, looking at the schema. Full circle moment π
π¦ $SCHEMA_META_FIELD_DEF
The meta-field existing on the top query. Top-level meta-field, main character, obviously π
πΈ $TYPE_META_FIELD_DEF
The meta-field existing on the top query, describing a named type. Same spot, different job β this one's about named types π·οΈ
β¨ $TYPE_NAME_META_FIELD_DEF
The meta-field existing on each object field, naming its type. Every object field gets one, and it tells you what type it is. Helpful bestie behavior fr fr π«Ά
no cap: every single one of those exports is spelled exactly like that, so don't get cute with the underscores when you use them π
and that's the page, bestie!! π this was perl v5.34.0, dated 2022-03-27 β Perl's own GraphQL::Introspection page, and yes it's been serving this exact meta realness since then π
β¨ bye ily π«Ά
π¦ 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