Skip to content

Commit 156f50e

Browse files
committed
chore: remove limit
1 parent 912830d commit 156f50e

File tree

1 file changed

+9
-21
lines changed

1 file changed

+9
-21
lines changed

packages/data-layer/src/queries.ts

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ export const getProgramsByUserAndTag = gql`
1414
query ($userAddress: String!, $chainIds: [Int!]!, $tags: jsonb) {
1515
projects(
1616
orderBy: { timestamp: DESC }
17-
limit: 100
1817
where: {
1918
tags: { _contains: $tags }
2019
chainId: { _in: $chainIds }
@@ -27,7 +26,7 @@ export const getProgramsByUserAndTag = gql`
2726
metadataCid
2827
tags
2928
createdByAddress
30-
projectRoles(limit: 100) {
29+
projectRoles {
3130
address
3231
role
3332
createdAtBlock
@@ -70,7 +69,7 @@ export const getProgramById = gql`
7069
metadataCid
7170
tags
7271
createdByAddress
73-
projectRoles(limit: 100) {
72+
projectRoles {
7473
address
7574
role
7675
createdAtBlock
@@ -91,7 +90,6 @@ export const getProjectsById = gql`
9190
# @param $projectId - The ID of the project
9291
query ($alloVersion: String!, $projectId: String!) {
9392
projects(
94-
limit: 100
9593
where: {
9694
tags: { _hasKey: $alloVersion }
9795
projectType: { _eq: "canonical" }
@@ -110,7 +108,7 @@ export const getProjectsById = gql`
110108
nonce
111109
anchorAddress
112110
projectType
113-
projectRoles(limit: 100) {
111+
projectRoles {
114112
address
115113
role
116114
createdAtBlock
@@ -191,7 +189,6 @@ export const getApplicationsByProjectIds = gql`
191189
$chainIds: [Int!]!
192190
) {
193191
applications(
194-
limit: 100
195192
where: { projectId: { _in: $projectIds }, chainId: { _in: $chainIds } }
196193
) {
197194
id
@@ -219,7 +216,6 @@ export const getApplicationsByProjectIds = gql`
219216
export const getApprovedApplicationsByProjectIds = gql`
220217
query getApprovedApplicationsByProjectIds($projectIds: [String!]!) {
221218
applications(
222-
limit: 100
223219
where: { projectId: { _in: $projectIds }, status: { _eq: APPROVED } }
224220
) {
225221
id
@@ -250,7 +246,6 @@ export const getApprovedApplicationsByProjectIds = gql`
250246
export const getApplicationsForManager = gql`
251247
query getApplicationsForManager($chainId: Int!, $roundId: String!) {
252248
applications(
253-
limit: 100
254249
where: { roundId: { _eq: $roundId }, chainId: { _eq: $chainId } }
255250
) {
256251
id
@@ -341,7 +336,6 @@ export const getApprovedApplication = gql`
341336
export const getApplicationsForExplorer = gql`
342337
query Applications($chainId: Int!, $roundId: String!) {
343338
applications(
344-
limit: 100
345339
where: {
346340
chainId: { _eq: $chainId }
347341
roundId: { _eq: $roundId }
@@ -383,7 +377,6 @@ export const getApplicationsByRoundIdAndProjectIds = gql`
383377
$projectIds: [String!]!
384378
) {
385379
applications(
386-
limit: 100
387380
where: {
388381
chainId: { _eq: $chainId }
389382
roundId: { _eq: $roundId }
@@ -425,7 +418,6 @@ export const getProjectsByAddress = gql`
425418
$role: project_role_name!
426419
) {
427420
projectRoles(
428-
limit: 100
429421
where: {
430422
address: { _eq: $address }
431423
chainId: { _eq: $chainId }
@@ -530,15 +522,14 @@ export const getProjectsAndRolesByAddress = gql`
530522
$chainIds: [Int!]!
531523
) {
532524
projects(
533-
limit: 100
534525
where: {
535526
projectRoles: { address: { _eq: $address } }
536527
tags: { _contains: [$version] }
537528
_not: { tags: { _contains: "program" } }
538529
chainId: { _in: $chainIds }
539530
}
540531
) {
541-
projectRoles(limit: 100) {
532+
projectRoles {
542533
role
543534
address
544535
projectId
@@ -555,7 +546,7 @@ export const getProjectsAndRolesByAddress = gql`
555546
anchorAddress
556547
projectType
557548
createdAtBlock
558-
applications(limit: 100) {
549+
applications {
559550
id
560551
metadata
561552
}
@@ -601,7 +592,7 @@ export const getRoundsQuery = gql`
601592
strategyId
602593
strategyName
603594
strategyAddress
604-
applications(limit: 100) {
595+
applications {
605596
id
606597
status
607598
}
@@ -634,7 +625,7 @@ export const getRoundByIdAndChainId = gql`
634625
strategyName
635626
readyForPayoutTransaction
636627
projectId
637-
roundRoles(limit: 100) {
628+
roundRoles {
638629
role
639630
address
640631
}
@@ -670,7 +661,7 @@ const getRoundForManagerFields = `
670661
fundedAmount
671662
fundedAmountInUsd
672663
matchingDistribution
673-
roundRoles(limit: 100) {
664+
roundRoles {
674665
role
675666
address
676667
createdAtBlock
@@ -702,7 +693,6 @@ export const getRoundsForManager = gql`
702693
query getRoundsForManager($chainId: Int!, $programId: String!) {
703694
rounds(
704695
orderBy: {timestamp:DESC}
705-
limit: 100
706696
where: {
707697
chainId: { _eq: $chainId }
708698
projectId: { _eq: $programId }
@@ -718,7 +708,6 @@ export const getRoundsForManagerByAddress = gql`
718708
query getRoundsForManager($chainIds: [Int!]!, $address: String!) {
719709
rounds(
720710
orderBy: {timestamp:DESC}
721-
limit: 100
722711
where: {
723712
roundMetadata: { _isNull: false },
724713
chainId: { _in: $chainIds},
@@ -761,7 +750,7 @@ export const getRoundForExplorer = gql`
761750
strategyAddress
762751
strategyName
763752
readyForPayoutTransaction
764-
applications(limit: 100, where: { status: { _eq: APPROVED } }) {
753+
applications(where: { status: { _eq: APPROVED } }) {
765754
id
766755
projectId
767756
status
@@ -779,7 +768,6 @@ export const getRoundForExplorer = gql`
779768
export const getDonationsByDonorAddress = gql`
780769
query getDonationsByDonorAddress($address: String!, $chainIds: [Int!]!) {
781770
donations(
782-
limit: 100
783771
where: { chainId: { _in: $chainIds }, donorAddress: { _eq: $address } }
784772
) {
785773
id

0 commit comments

Comments
 (0)