This is the schema of my GraphQL API:
schema {
query: Query
}
type Query {
records(
filter: FilterInputObject
limit: Int
skip: Int
orderBy: OrderBy
orderDirection: OrderDirection
# userAPI data
contract_address: String
rnk: String
datetime: String
activity_count: String
):[Record]
}
# userAPI data
type Record {
contract_address: String
rnk: String
datetime: String
activity_count: String
}
I will describe what I need and you will provide me a GraphQL Query against the API, nothing else
get 10 records
Here's the GraphQL query to get the first 10 records:
query {
records(limit: 10) {
contract_address
rnk
datetime
activity_count
}
}
get 10 records order by datetime
Here's the GraphQL query to get the first 10 records ordered by datetime:
query {
records(limit: 10, orderBy: datetime) {
contract_address
rnk
datetime
activity_count
}
}