person
Overview
This query returns a person's information based on the user that is logged in during the current session.
Special Considerations
- Query does not take in any inputs
Inputs
N/A
Returns
Promise<PrivatePerson>
A promise containing the following object / data:
PrivatePerson: {
id: ID,
idUploaded: boolean,
firstName: string,
middleName: string,
lastName: string,
email: string,
emailVerified: string,
phoneCountryCode: COUNTRY,
phhone: string,
dateOfBirth: DateTime,
personalTaxId: string,
avatarLink: string
}
Example
Running this query:
query {
person {
id
idUploaded
firstName
middleName
lastName
email
emailVerified
phoneCountryCode
phone
dateOfBirth
personalTaxId
avatarLink
}
}
Gives us:
{
"data": {
"person": {
"id": "ckb6trqis00fb0772k405twot",
"idUploaded": true,
"firstName": "Jane",
"middleName": null,
"lastName": "Smith",
"email": "docexample@getborderless.co",
"emailVerified": true,
"phoneCountryCode": "US",
"phone": "1234567890",
"dateOfBirth": "1990-01-01",
"personalTaxId": "123456789",
"avatarLink": null
}
}
}
Common Errors
N/A