Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wabscale/hist-ua-175-final


https://github.com/wabscale/hist-ua-175-final

data-visualization graphql immigration immigration-visualizer

Last synced: 1 day ago
JSON representation

Awesome Lists containing this project

README

        

# Hist 175 Final Project

```graphql
{
port_of_entry(func: eq(port_of_entry, "New York, NY")) {
port_of_entry
people: ~poe {
name
naid
country: c {
country
}
year_of_entry: yoe {
year_of_entry
}
}
}
}
```

![alt img/img4.png](img/img4.png)

---

```graphql
{
var(func: eq(country, "Italy")) {
country
italians as ~c {
name
}
}

var(func: eq(year_of_entry, 1963)) {
year_of_entry
y1963p as ~yoe {
name
}
}

port_of_entry(func: eq(port_of_entry, "New York, NY")) {
port_of_entry
people: ~poe(first: 30) @filter(uid(italians) AND uid(y1963p)) {
name
naid
country: c {
country
}
year_of_entry: yoe {
year_of_entry
}
}
}
}
```

![alt img/img3.png](img/img3.png)

---

```graphql
{
root(func: type(Root)) {
countries(first: 10) {
country

people(first: 30) {
name
naid

age : ~people {
age
}

age_of_entry : ~people {
age_of_entry
}

age_of_naturalization : ~people {
age_of_naturalization
}

port_of_entry : ~people {
port_of_entry
}
}
}
}
}
```

![alt img/img2.png](img/img2.png)

---

```graphql
{
root(func: type(Root)) {
countries(first: 10) {
country

people(first: 30) {
name
naid
}
}

ports_of_entry(first: 10) {
port_of_entry

people(first: 30) {
name
naid
}
}
}
}
```

![alt img/img1.png](img/img1.png)