Skip to content

Instantly share code, notes, and snippets.

Avatar

Alysson Melo alyssoncm

View GitHub Profile
View json-movie
{
"title": "Joker",
"releaseDate": "August 31, 2019",
"director": {
"firstName": "Todd",
"lastName": "Phillips",
"education": "Tisch School Of The Arts",
"nominations": "Academy Award"
}
}
View get-movies-1
{
"title": "Joker",
"releaseDate": "August 31, 2019",
"director": {
"firstName": "Todd",
"lastName": "Phillips",
"education": "Tisch School Of The Arts",
"nominations": "Academy Award"
}
}
View graphql-query-example
{
movies (id: 1) {
title
releaseDate
director {
firstName
lastName
education
nominations
}
@alyssoncm
alyssoncm / get-api-products
Last active Sep 11, 2019
GET /api/products
View get-api-products
[{
"title": "Table lamp",
"desc": "Features a ceramic base and antique brass accents.",
"price": "$178"
},
{
"title": "Floor lamp",
"desc": "Geometric floor lamp with ivory linen shade.",
"price": "$299"
}
View get-products-delivery
{
"products": {
...,
"delivery": {
"shipping": "Amazon Prime",
"expectedDays": "2"
}
}
}
View graphql-product-delivery
query {
products {
title
desc
price
delivery {
shipping
expectedDays
}
}
View get-api-products-2
[{
...,
"delivery": {
"shipping": "Amazon Prime",
"expectedDays": "2"
}
},
{
...,
"delivery": {
View graphq-query-2
query {
products {
title
desc
price
}
}
View query2.json
[{
"delivery": {
"shipping": "Amazon Prime",
"expectedDays": "2"
}
},
{
"delivery": {
@alyssoncm
alyssoncm / productsWithDeliveryDetails.json
Created Sep 11, 2019
GET /api/productsWithDeliveryDetails
View productsWithDeliveryDetails.json
[
{
...,
"delivery": {
"shipping": "Amazon Prime",
"expectedDays": "2"
}
},
{
...,