Add base acc server
This commit is contained in:
31
schema/schema.graphql
Normal file
31
schema/schema.graphql
Normal file
@@ -0,0 +1,31 @@
|
||||
type Query {
|
||||
human(id: ID!): Human
|
||||
character(id: ID!): Character
|
||||
}
|
||||
|
||||
enum LengthUnit {
|
||||
Meter
|
||||
Feet
|
||||
}
|
||||
|
||||
interface Character {
|
||||
id: ID!
|
||||
name: String!
|
||||
}
|
||||
|
||||
type Human implements Character{
|
||||
id: ID!
|
||||
name: String!
|
||||
friends: [Human!]
|
||||
height(unit: LengthUnit = METER): Unit!
|
||||
friendsConnection(first: Int, after: ID): FriendsConnection!
|
||||
}
|
||||
|
||||
type FriendsConnection {
|
||||
totalCount: Int!
|
||||
friends: [Character!]
|
||||
}
|
||||
|
||||
type Unit {
|
||||
value: Float!
|
||||
}
|
Reference in New Issue
Block a user