Skip to main content
Version: v2.x

Making your first GraphQL query


Let's create a sample table and query data from it using the Hasura console, a UI tool meant for doing exactly this:

Create a table

Head to the Hasura console, navigate to Data -> Create table and create a sample table called profiles with the following columns:

profiles (
id SERIAL PRIMARY KEY, -- serial -> auto-incrementing integer
name TEXT
Create a table

Now, insert some sample data into the table using the Insert Row tab of the profiles table.

Try out a query

Head to the API tab in the console and try running the following query:

query {
profiles {

You'll see that you get all the inserted data!

Try out a query