user

Returns a single user.

user(id, address) { /* User fields */ }

Arguments

id Int!

The ID of the User to return.

address String

The wallet address of the User to return.

Response

User.* User

Any 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" } ] } } }