For databases like Postgresql, MySQL, SQLite, SQLServer, MongoDB, CockroachDB and Planetscale, WunderGraph is able to directly speak GraphQL to your Database. We automatically introspect your database and generate a GraphQL Schema, you don't have to manually code a backend.
First, let's add Postgresql as a data source. Simply point WunderGraph to your database using the connection string.
Define an Operation
The GraphQL schema is generated automatically. Next, we can define our Operation. Let's query all messages.
Call the generated RPC Endpoint
And we're done!