Exhaustive list of SPDX (Software Package Data Exchange) licenses: https://spdx.org/licenses/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run this command to get the latest IP range: | |
dig @8.8.8.8 +short txt _cloud-netblocks.googleusercontent.com | sed 's/"//g; s/ip4://g; s/ip6://g;' | tr ' ' '\n' | grep include | cut -d ':' -f2 | xargs dig @8.8.8.8 +short txt | sed 's/"//g; s/ip4://g; s/ip6://g;' | tr ' ' '\n' | grep '/' | |
# The following list got extracted on 20170418: | |
# 8.34.208.0/20 IP range: 8.34.208.0 8.34.223.255 | |
# 8.35.192.0/21 IP range: 8.35.192.0 8.35.199.255 | |
# 8.35.200.0/23 IP range: 8.35.200.0 8.35.201.255 | |
# 108.59.80.0/20 IP range: 108.59.80.0 108.59.95.255 | |
# 108.170.192.0/20 IP range: 108.170.192.0 108.170.207.255 | |
# 108.170.208.0/21 IP range: 108.170.208.0 108.170.215.255 | |
# 108.170.216.0/22 IP range: 108.170.216.0 108.170.219.255 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// src/schema.js | |
const { makeExecutableSchema } = require('graphql-tools') | |
const _ = require('lodash') | |
const schema = ` | |
type Product { | |
id: ID! | |
name: String! | |
shortDescription: String |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- src/ | |
|__ graphql/ | |
|__ product/ | |
| |__ schema.graphql | |
| |__ resolver.js | |
| | |
|__ variant/ | |
|__ schema.graphql | |
|__ resolver.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// src/graphql/product/schema.graphql | |
type Product { | |
id: ID! | |
name: String! | |
shortDescription: String | |
} | |
type Query { | |
# ### GET products |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const schema = ` | |
type Teacher { | |
id: ID! | |
creationDate: String | |
firstname: String! | |
middlename: String | |
lastname: String! | |
age: Int! | |
gender: String |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const schema = ` | |
type Node { | |
id: ID! | |
creationDate: String | |
} | |
type Person inherits Node { | |
firstname: String! | |
middlename: String | |
lastname: String! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const schema = ` | |
type Teacher { | |
id: ID! | |
creationDate: String | |
firstname: String! | |
middlename: String | |
lastname: String! | |
age: Int! | |
gender: String | |
title: String! |
OlderNewer