Subgraph and Data Indexing
OmniSocial uses The Graph to index and query on-chain data in real time.
🧱 Core Entities
Entity
Description
🔍 Example GraphQL Queries
🔹 Fetch all proposals in a DAO
{
proposals(where: { dao: "0xDAO_ADDRESS" }) {
id
title
description
state
createdAt
}
}🔹 Get a wallet by .omni alias
🔹 Show all tips received by a user
🛠 Deploying the Subgraph
📍 Localhost (for dev)
☁️ Hosted Service (The Graph Hosted or Subgraph Studio)
1. Set up Graph account and auth:
2. Deploy:
🧩 Schema Overview (Partial)
🔁 Common Use Cases
Use Case
Query Example
Last updated
Was this helpful?
