All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ava-generator.graphql-maven-plugin-samples-StarWars-client.1.0.0-RC2.source-code.starWarsSchema.graphqls Maven / Gradle / Ivy

There is a newer version: 2.0RC1
Show newest version
schema {
    query: QueryType
    mutation: MutationType
}

type QueryType {
    hero(episode: Episode): Character
    characters(episode: Episode): [Character]!
    human(id: ID) : Human
    droid(id: ID!): Droid
}

type MutationType {
	createHuman(name: String!, homePlanet: String): Human
	addFriend(idCharacter: ID!, idNewFriend: ID!): Character
}


enum Episode {
    NEWHOPE
    EMPIRE
    JEDI
}

interface Character {
    id: ID!
    name: String!
    friends: [Character]
    appearsIn: [Episode]!
}

type Human implements Character {
    id: ID!
    name: String!
    friends: [Character]
    appearsIn: [Episode]!
    homePlanet: String
}

type Droid implements Character {
    id: ID!
    name: String!
    friends: [Character]
    appearsIn: [Episode]!
    primaryFunction: String
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy