import { TimegraphClient } from "@analog-labs/timegraph-js";
const timeGraphClient = new TimegraphClient({
url: "", // A url to Watch GraphQL instance.
sessionKey: "", // Session key created by user wallet using WASM SDK
});
// i.e If you're querying other publishers' View, then an alias request will be called in first.
// Optional Alias request to query other publisher view.
const aliasResponse = await timeGraphClient.alias.add({
name:"",
identifier:""
})
// Request to query the view.....
const response = await timeGraphClient.view.data(
{
hashId:"",
fields:[""],
limit:""
});