{
user: {
firstName: 'Mitch',
lastName: 'Masia',
email: 'mmasia@hexientlabs.com',
city: 'Atlanta'
state: 'Georgia',
zip: '30305',
createdAt: '2018-05-11T02:58:27.918Z',
updatedAt: '2018-05-11T02:58:27.918Z',
}
}
{
user: {
firstName: 'Mitch',
lastName: 'Masia',
email: 'mmasia@hexientlabs.com',
city: 'Atlanta'
state: 'Georgia',
zip: '30305',
createdAt: '2018-05-11T02:58:27.918Z',
updatedAt: '2018-05-11T02:58:27.918Z',
}
}
{
user: {
firstName: 'Mitch',
lastName: 'Masia',
email: 'mmasia@hexientlabs.com',
// Phone (new data!)
phone: '8475252033',
city: 'Atlanta'
state: 'Georgia',
zip: '30305',
createdAt: '2018-05-11T02:58:27.918Z',
updatedAt: '2018-05-11T02:58:27.918Z',
}
}
{
user: {
firstName: 'Mitch',
lastName: 'Masia',
email: 'mmasia@hexientlabs.com',
phone: '8475252033',
city: 'Atlanta'
state: 'Georgia',
country: 'United States',
placeId: '323lkjrl3kj4309sdcsdf8',
zip: '30305',
friends: [...],
createdAt: '2018-05-11T02:58:27.918Z',
updatedAt: '2018-05-11T02:58:27.918Z',
}
}
// Request the data we want
fetch(`{API_HOST}/me?fields=firstName,lastName,email`)
// Get back the data we want
{
user: {
firstName: 'Mitch',
lastName: 'Masia',
email: 'mmasia@hexientlabs.com'
}
}
// Request the data we want
fetch(
`{FACEBOOK_API_HOST}/me?fields=email,friends{email}`
)
// Get back the data we want
{
user: {
email: 'mmasia@hexientlabs.com',
friends: [
{ email: BREACH!!!!! }
]
}
}
{
profile {
id
firstName
lastName
email
createdAt
updatedAt
}
}
{
profile {
id: 'asdfasldfkjl2k342l3',
firstName: 'Mitch',
lastName: 'Masia',
email: 'mmasia@hexientlabs.com',
createdAt: '...',
updatedAt: '...',
}
}
posts(filters: PostsFilter): [Posts]!
createPost(content: String!, link: String!): Post!