Skip to content

Commit

Permalink
holders -> balances
Browse files Browse the repository at this point in the history
  • Loading branch information
charlie-wasp committed Apr 15, 2019
1 parent f1eea0d commit 79a4ed3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/schema/assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const typeDefs = gql`
"Asset's code"
code: AssetCode!
"All accounts that trust this asset, ordered by balance"
holders(first: Int, last: Int, after: String, before: String): BalanceConnection
balances(first: Int, last: Int, after: String, before: String): BalanceConnection
}
"Represents single [asset](https://www.stellar.org/developers/guides/concepts/assets.html) on Stellar network with additional statistics, provided by Horizon"
Expand All @@ -33,7 +33,7 @@ export const typeDefs = gql`
"Asset's issuer account flags"
flags: AccountFlags
"All accounts that trust this asset, ordered by balance"
holders(first: Int, last: Int, after: String, before: String): BalanceConnection
balances(first: Int, last: Int, after: String, before: String): BalanceConnection
}
"A list of assets"
Expand Down
4 changes: 2 additions & 2 deletions src/schema/resolvers/asset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ const holdersResolver = async (root: Asset, args: any, ctx: IApolloContext, info
};

export default {
Asset: { issuer: resolvers.account, holders: holdersResolver },
AssetWithInfo: { issuer: resolvers.account, holders: holdersResolver },
Asset: { issuer: resolvers.account, balances: holdersResolver },
AssetWithInfo: { issuer: resolvers.account, balances: holdersResolver },
Query: {
asset: async (root: any, args: { id: AssetID }, ctx: IApolloContext, info: any) => {
return AssetFactory.fromId(args.id);
Expand Down

0 comments on commit 79a4ed3

Please sign in to comment.