mirror of
https://github.com/status-im/liquid-funding.git
synced 2025-01-10 19:47:04 +00:00
pass in order direction
This commit is contained in:
parent
cc968d79e8
commit
b11f2a4f19
@ -133,7 +133,8 @@ function ListProjects() {
|
||||
{
|
||||
variables: {
|
||||
offset,
|
||||
limit: 5
|
||||
limit: 5,
|
||||
orderDirection: 'desc'
|
||||
}
|
||||
}
|
||||
)
|
||||
|
@ -104,8 +104,8 @@ query Profile($id: ID!) {
|
||||
export const getProjects = gql`
|
||||
${pledgesInfosFields}
|
||||
|
||||
query Projects($type: String! = "PROJECT", $limit: Int, $offset: Int){
|
||||
profiles(where: {type: $type, projectInfo_not: null}, first: $limit, skip: $offset, orderBy: profileId, orderDirection: desc) {
|
||||
query Projects($type: String! = "PROJECT", $limit: Int, $offset: Int, $orderDirection: String){
|
||||
profiles(where: {type: $type, projectInfo_not: null}, first: $limit, skip: $offset, orderBy: profileId, orderDirection: $orderDirection) {
|
||||
id
|
||||
addr
|
||||
canceled
|
||||
|
Loading…
x
Reference in New Issue
Block a user