get rid of unnecessary list types

This commit is contained in:
Eric Hulburd
2016-01-31 19:18:18 -06:00
parent bf43ca6e40
commit d1e230c6fd
5 changed files with 35 additions and 384 deletions

View File

@@ -1,47 +1,20 @@
type House implements Node {
id: ID!
name: String!
power_data(after: String, first: Int, before: String, last: Int): PowerDatumConnection
habitants(after: String, first: Int, before: String, last: Int): UserConnection
}
type HouseConnection {
pageInfo: PageInfo!
edges: [HouseEdge]
}
type HouseEdge {
node: House
cursor: String!
power_data(after: String, first: Int, before: String, last: Int): [PowerDatum]
habitants(after: String, first: Int, before: String, last: Int): [User]
}
interface Node {
id: ID!
}
type PageInfo {
hasNextPage: Boolean!
hasPreviousPage: Boolean!
startCursor: String
endCursor: String
}
type PowerDatum implements Node {
id: ID!
power: Float
time: Int
}
type PowerDatumConnection {
pageInfo: PageInfo!
edges: [PowerDatumEdge]
}
type PowerDatumEdge {
node: PowerDatum
cursor: String!
}
type Query {
node(id: ID!): Node
viewer: User
@@ -50,15 +23,5 @@ type Query {
type User implements Node {
id: ID!
username: String!
house: HouseConnection
}
type UserConnection {
pageInfo: PageInfo!
edges: [UserEdge]
}
type UserEdge {
node: User
cursor: String!
house: House
}