Grephql is a compile-time GraphQL client library for Elixir that parses and validates GraphQL queries during compilation rather than at runtime. Key features include typed Ecto embedded schemas auto-generated for both responses and variables, deprecation warnings at compile time, zero runtime parsing overhead, and Req integration for HTTP execution. The library provides macros like `defgql`, `defgqlp`, and `deffragment` for defining queries, supports unions/interfaces, custom scalars, fragments, and includes a `~GQL` sigil with formatter support. Testing is handled via `Req.Test` stubs, and a mix task handles schema downloading via introspection.
Table of contents
FeaturesInstallationQuick StartMacrosConfigurationThe ~GQL Sigil and FormatterCustom ScalarsUnions and InterfacesGenerated ModulesAccess BehaviourTestingMix Tasksuse Grephql OptionsRequirementsLicenseSort: