add exchange order screen

This commit is contained in:
João Geonizeli
2021-08-13 23:55:37 -03:00
parent be31d7165a
commit 4922994da6
12 changed files with 516 additions and 3 deletions

View File

@@ -39,6 +39,36 @@ type Currency implements Node {
name: String!
}
"""
The connection type for Currency.
"""
type CurrencyConnection {
"""
A list of edges.
"""
edges: [CurrencyEdge!]!
"""
Information to aid in pagination.
"""
pageInfo: PageInfo!
}
"""
An edge in a connection.
"""
type CurrencyEdge {
"""
A cursor for use in pagination.
"""
cursor: String!
"""
The item at the end of the edge.
"""
node: Currency!
}
type FiatBalance implements Node {
amountCents: Int!
amountCurrency: String!
@@ -139,6 +169,27 @@ type Query {
"""
last: Int
): BalanceConnection!
currencies(
"""
Returns the elements in the list that come after the specified cursor.
"""
after: String
"""
Returns the elements in the list that come before the specified cursor.
"""
before: String
"""
Returns the first _n_ elements from the list.
"""
first: Int
"""
Returns the last _n_ elements from the list.
"""
last: Int
): CurrencyConnection!
currentUser: User
fiatBalances(
"""