Skip to content

Commit 5265f00

Browse files
committed
Create kg-donors.graphql
1 parent 6d96676 commit 5265f00

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

donors/kg-donors/kg-donors.graphql

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
2+
3+
type School {
4+
id: ID!
5+
name: String! @search(by: [term])
6+
type: String! @search(by: [hash])
7+
zip: Location @hasInverse(field: "school")
8+
}
9+
10+
type Location {
11+
zip: String! @id
12+
district: String @search(by: [hash])
13+
city: String! @search(by: [hash])
14+
county: String @search(by: [hash])
15+
state: String! @search(by: [hash])
16+
geoloc: Point
17+
school: [School] @hasInverse(field: "zip")
18+
}
19+
20+
type District{
21+
id: String! @id
22+
name: String! @search(by: [hash])
23+
county: County
24+
}
25+
type County {
26+
id: String! @id
27+
name: String! @search(by: [hash])
28+
city: State
29+
}
30+
type City {
31+
id: String! @id
32+
name: String! @search(by: [hash])
33+
state: State
34+
}
35+
type State {
36+
name: String! @id
37+
}
38+

0 commit comments

Comments
 (0)