Skip to content

Commit

Permalink
MBL-1464: Create graphQL PPO card list query (#2066)
Browse files Browse the repository at this point in the history
* first pass, adding new ppo graph query

* lotsa cleanup

* cleanup

* Linter

* more cleanup

* linter

* remove mock code

* Remove ppo card mock

* fix vm and test

* Linter

* remove address envelope

* linter

---------

Co-authored-by: Leigh Douglas <[email protected]>
  • Loading branch information
leighdouglas and Leigh Douglas authored Jul 2, 2024
1 parent 85a4c33 commit b94677f
Show file tree
Hide file tree
Showing 15 changed files with 2,752 additions and 1,730 deletions.
18 changes: 18 additions & 0 deletions app/src/main/graphql/fragments.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,24 @@ fragment shippingRule on ShippingRule {
}
}



fragment ppoCard on Backing {
id
amount {
...amount
}
project {
name
id
slug
...full
creator {
name
}
}
}

fragment user on User {
name
id
Expand Down
31 changes: 31 additions & 0 deletions app/src/main/graphql/pledgeProjectsOverview.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
query PledgedProjectsOverview($first: Int, $after: String, $last: Int, $before: String) {
pledgeProjectsOverview {
categories {
count
slug
title
}
pledges(first : $first, after: $after, last : $last, before: $before) {
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
totalCount
edges {
cursor
node {
backing {
... ppoCard
}
}
}
nodes {
backing {
... ppoCard
}
}
}
}
}
Loading

0 comments on commit b94677f

Please sign in to comment.