user
Returns a single user.
user(id, address) {
/* User fields */
}
Arguments
id
Int!
id
Int!The ID of the User to return.
address
String
address
StringThe wallet address of the User to return.
Response
User.*
User
User.*
UserAny requested field from the User object.
Example
Request
query {
user(id: 2) {
id
wallets {
address
}
}
}
query {
user(address: "0x959e104e1a4db6317fa58f8295f586e1a978c297") {
id
wallets {
address
}
}
}
Response
{
"data": {
"user": {
"id": 2,
"wallets": [
{
"address": "0x959e104e1a4db6317fa58f8295f586e1a978c297"
}
]
}
}
}