Skip to content

Commit

Permalink
Update the Aragon Subgraph docs by commit caf077b
Browse files Browse the repository at this point in the history
  • Loading branch information
banasa44 authored and arabot-1 committed Apr 9, 2024
1 parent f9891e0 commit 4ef3f0f
Show file tree
Hide file tree
Showing 76 changed files with 12 additions and 7,138 deletions.
39 changes: 4 additions & 35 deletions docs/subgraph/01-query-examples/01-dao-query.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ sidebar_label: DAO Query
The query

```ts
import {gql} from 'graphql-request';

export const QueryDao = gql`
query Dao($address: ID!) {
dao(id: $address) {
Expand All @@ -32,41 +34,9 @@ export const QueryDao = gql`
}
}
`;
export const QueryDaos = gql`
query Daos(
$limit: Int!
$skip: Int!
$direction: OrderDirection!
$sortBy: Dao_orderBy!
) {
daos(
first: $limit
skip: $skip
orderDirection: $direction
orderBy: $sortBy
) {
id
subdomain
metadata
plugins {
appliedPreparation {
pluginAddress
}
appliedPluginRepo {
subdomain
}
appliedVersion {
build
release {
release
}
}
}
}
}
`;
```


The return

```json
Expand Down Expand Up @@ -95,5 +65,4 @@ The return
]
}
}
}
```
}
6 changes: 4 additions & 2 deletions docs/subgraph/01-query-examples/02-balances-query.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ sidebar_label: Balances Query
The query

```ts
import {gql} from 'graphql-request';

export const QueryTokenBalances = gql`
query TokenBalances(
$where: TokenBalance_filter!
Expand Down Expand Up @@ -61,6 +63,7 @@ export const QueryTokenBalances = gql`
`;
```


The return

```json
Expand Down Expand Up @@ -96,5 +99,4 @@ The return
}
]
}
}
```
}
2 changes: 1 addition & 1 deletion docs/subgraph/01-query-examples/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ sidebar_label: Query Examples

## Querying in Subgraph

This section will contain useful queries.
This section will contain useful queries.
4 changes: 2 additions & 2 deletions docs/subgraph/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ sidebar_position: 0

Subgraph is a protocol for indexing and querying event data emitted from the smart contracts.

The Aragon Subgraph stores all DAO-related information, either to help users to manage and interact with their DAOs or to query useful information, such as its treasury information, members, installed plugins, etc.
The Aragon Subgraph stores all DAO-related information, either to help users to manage and interact with their DAOs or to query useful information, such as its treasury information, members, plugins, etc.

## Playground

You can use the [Aragon subgraph-satsuma playground](https://subgraph.satsuma-prod.com/aragon/osx-mainnet/playground) for testing.

### Walkthrough

This documentation includes some [example queries](./01-query-examples/index.md) to get you familiarized with subgraph protocol and the [Reference Guide](./reference-guide/index.md) generated from the latest version of our `@aragon/osx` [subgraph schema](https://github.com/aragon/osx/blob/develop/packages/subgraph/schema.graphql).
This documentation includes some [example queries](./01-query-examples/index.md) to get you familiarized with subgraph protocol and the [Reference Guide](./reference-guide/index.md) generated from the latest version of our `@aragon/osx` [subgraph schema](https://github.com/aragon/osx/blob/develop/packages/subgraph/schema.graphql).
6 changes: 0 additions & 6 deletions docs/subgraph/reference-guide/directives/_category_.yml

This file was deleted.

69 changes: 0 additions & 69 deletions docs/subgraph/reference-guide/directives/deprecated.mdx

This file was deleted.

68 changes: 0 additions & 68 deletions docs/subgraph/reference-guide/directives/include.mdx

This file was deleted.

68 changes: 0 additions & 68 deletions docs/subgraph/reference-guide/directives/skip.mdx

This file was deleted.

65 changes: 0 additions & 65 deletions docs/subgraph/reference-guide/directives/specified-by.mdx

This file was deleted.

5 changes: 0 additions & 5 deletions docs/subgraph/reference-guide/enums/_category_.yml

This file was deleted.

Loading

0 comments on commit 4ef3f0f

Please sign in to comment.