Skip to main content

Your First Query

The simplest way to create and run a query is to use the IDE: You first have to register, and the IDE window will open.

If IDE points to the default endpoint, you have to change it to the new endpoint Bookmark the link to open IDE with the correct URL:

If you did everything correctly, you will see the grey triangle in the middle of the screen to run the query.

Query editor is in the center of the screen, and you can use handy Ctrl-Space key combination to see all possible options that you can enter at edit point. On the empty editor, it will show the drop-down list:

IDE context menu

So you can type the query using hints from IDE. As example, you can query the latest 10 blocks on ETH network:

EVM(network: eth) {
Blocks(limit: {count: 10}) {
Block {

After you created a query, the run triangle button will appear to be green, and you can press it now to see the results:

IDE query execution