Skip to content

Commit

Permalink
Fetch only 5 tokens for account page
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisommore committed Sep 4, 2023
1 parent d56e871 commit 753fed7
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/graph-ql/queries/octav3/GET_MY_MUSIC/getMyMusic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { gql } from "../__generated__";

export const GET_MY_MUSIC = gql(`
query GetMyMusic($owner:Bytes) @api(name: octav3){
musicTokens(where:{owner:$owner}) {
musicTokens(first: 5,where:{owner:$owner}) {
id
tokenUri
}
Expand Down
4 changes: 2 additions & 2 deletions src/graph-ql/queries/octav3/__generated__/gql.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/graph-ql/queries/octav3/__generated__/graphql.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/graph-ql/queries/spinamp/GET_MY_MUSIC/getMyMusic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { gql } from "../__generated__";
// TODO use pagination
export const GET_MY_MUSIC = gql(`
query GetMyMusic($owner:String) @api(name: spinamp){
allNfts(first:20,filter:{nftsCollectorsByNftId:{some:{addressId:{equalToInsensitive:$owner}}}}) {
allNfts(first:5,filter:{nftsCollectorsByNftId:{some:{addressId:{equalToInsensitive:$owner}}}}) {
nodes {
id
tokenId
Expand Down
4 changes: 2 additions & 2 deletions src/graph-ql/queries/spinamp/__generated__/gql.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/graph-ql/queries/spinamp/__generated__/graphql.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 753fed7

Please sign in to comment.