Files
old-spike/config/graphql/schema.graphql
2016-01-31 19:18:18 -06:00

28 lines
445 B
GraphQL

type House implements Node {
id: ID!
name: 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 PowerDatum implements Node {
id: ID!
power: Float
time: Int
}
type Query {
node(id: ID!): Node
viewer: User
}
type User implements Node {
id: ID!
username: String!
house: House
}