Add base acc server

This commit is contained in:
2022-06-10 12:52:39 +02:00
commit 083cfdc580
12 changed files with 4526 additions and 0 deletions

31
schema/schema.graphql Normal file
View 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!
}