1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-22 20:37:05 +00:00

add graphql example

#2029
This commit is contained in:
Gerasimos (Makis) Maropoulos
2023-02-07 03:01:24 +02:00
parent da9666d5b8
commit e9eb85af90
12 changed files with 4412 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
# GraphQL schema example
#
# https://gqlgen.com/getting-started/
enum CliqueType {
"People who are elite with parents having money"
KOOKS
"People who desperate to move up the social ladder to become new versions of themselves and establish new beginnings"
POGUES
}
type Character {
id: ID!
name: String!
isHero: Boolean!
cliqueType: CliqueType!
}
input CharacterInput {
name: String!
id: String
isHero: Boolean
cliqueType: CliqueType!
}
type Mutation {
upsertCharacter(input: CharacterInput!): Character!
}
type Query {
character(id:ID!): Character
characters(cliqueType:CliqueType!): [Character!]
}