Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

demo(partial-index): demonstrate working queries on partial index #32

Closed
wants to merge 11 commits into from

Conversation

tk-o
Copy link
Contributor

@tk-o tk-o commented Jan 16, 2025

This PR should not be merged

It includes changes that break some important assumptions required for correctness of indexed data. This happens to allow partial-indexing for demonstration purposes.

Partial index allow to focus on particular blocks and show how the GQL queries work.

Full index must keep more assumptions in play while processing data, and also process a full range of known blocks.

Index query

Go to http://localhost:42069, define query variables:

{
  "ownerAddress": "0x8d3b2c5b93716508639e3ccfe2a3db58af540b66"
}

and send query below:

query GetOwnedDomains($ownerAddress: String!) {
  domains(
    where: {OR: [{ownerId: $ownerAddress}, {wrappedOwnerId: $ownerAddress}]}
  ) {
    items {
      name
      createdAt
      expiryDate
      ownerId
      wrappedOwnerId
    }
  }
}

Preview

image

Indexer console

Here's a preview showing which events (grouped by plugin) were captured and how many times:
image

@tk-o tk-o changed the title feat(partial-index): demonstrate working queries on partial index demo(partial-index): demonstrate working queries on partial index Jan 17, 2025
@tk-o
Copy link
Contributor Author

tk-o commented Jan 17, 2025

Closing this PR as it serves only as documentation for the partial-index demo.

@tk-o tk-o closed this Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants