...

Text file src/github.com/vektah/gqlparser/v2/formatter/testdata/baseline/FormatSchema/spaceIndent/swapi.graphql

Documentation: github.com/vektah/gqlparser/v2/formatter/testdata/baseline/FormatSchema/spaceIndent

     1interface Character {
     2 id: ID!
     3 name: String!
     4 friends: [Character]
     5 friendsConnection(first: Int, after: ID): FriendsConnection!
     6 appearsIn: [Episode]!
     7}
     8input ColorInput {
     9 red: Int!
    10 green: Int!
    11 blue: Int!
    12}
    13type Droid implements Character {
    14 id: ID!
    15 name: String!
    16 friends: [Character]
    17 friendsConnection(first: Int, after: ID): FriendsConnection!
    18 appearsIn: [Episode]!
    19 primaryFunction: String
    20}
    21enum Episode {
    22 NEWHOPE
    23 EMPIRE
    24 JEDI
    25}
    26type FriendsConnection {
    27 totalCount: Int
    28 edges: [FriendsEdge]
    29 friends: [Character]
    30 pageInfo: PageInfo!
    31}
    32type FriendsEdge {
    33 cursor: ID!
    34 node: Character
    35}
    36type Human implements Character {
    37 id: ID!
    38 name: String!
    39 homePlanet: String
    40 height(unit: LengthUnit = METER): Float
    41 mass: Float
    42 friends: [Character]
    43 friendsConnection(first: Int, after: ID): FriendsConnection!
    44 appearsIn: [Episode]!
    45 starships: [Starship]
    46}
    47enum LengthUnit {
    48 METER
    49 FOOT
    50}
    51type Mutation {
    52 createReview(episode: Episode, review: ReviewInput!): Review
    53}
    54type PageInfo {
    55 startCursor: ID
    56 endCursor: ID
    57 hasNextPage: Boolean!
    58}
    59type Query {
    60 hero(episode: Episode): Character
    61 reviews(episode: Episode!): [Review]
    62 search(text: String): [SearchResult]
    63 character(id: ID!): Character
    64 droid(id: ID!): Droid
    65 human(id: ID!): Human
    66 starship(id: ID!): Starship
    67}
    68type Review {
    69 episode: Episode
    70 stars: Int!
    71 commentary: String
    72}
    73input ReviewInput {
    74 stars: Int!
    75 commentary: String
    76 favorite_color: ColorInput
    77}
    78union SearchResult = Human | Droid | Starship
    79type Starship {
    80 id: ID!
    81 name: String!
    82 length(unit: LengthUnit = METER): Float
    83 coordinates: [[Float!]!]
    84}
    85type Subscription {
    86 reviewAdded(episode: Episode): Review
    87}

View as plain text