# How pg\_graphql works

DevFeed: [How pg\_graphql works](<https://devfeed.tech/articles/how-pg-graphql-works-394.md>)

Original publisher: [Read original article](<https://supabase.com/blog/how-pg-graphql-works>)

Author: Raminder Singh

Published: 2024-01-24T07:00:00Z

Content type: article

Language: en

Sources: [Supabase Blog](<https://devfeed.tech/sources/supabase-blog.md>)

Topics: [GraphQL](<https://devfeed.tech/topics/graphql.md>), [Supabase](<https://devfeed.tech/topics/supabase.md>), [Parser](<https://devfeed.tech/topics/parser.md>), [Rust](<https://devfeed.tech/topics/rust.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [API](<https://devfeed.tech/topics/api.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [article](<https://devfeed.tech/tags/article.md>), [database](<https://devfeed.tech/tags/database.md>), [graphql](<https://devfeed.tech/tags/graphql.md>), [postgres](<https://devfeed.tech/tags/postgres.md>), [programming](<https://devfeed.tech/tags/programming.md>), [rust](<https://devfeed.tech/tags/rust.md>)

## AI overview

This article explains how pg_graphql works internally as a Postgres extension. It describes how GraphQL requests are processed in Rust, including tokenization and parsing queries into abstract syntax trees, and discusses how the extension exposes GraphQL through SQL functions and HTTP interfaces.

## Source excerpt

An insight into the internals of GraphQL in Postgres using pg_graphql, and how you can contribute.