mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 18:51:03 +01:00
33 lines
634 B
GraphQL
33 lines
634 B
GraphQL
# 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!]
|
|
} |