PHP Class GraphQL\Tests\StarWarsSchema

enum Episode { NEWHOPE, EMPIRE, JEDI } interface Character { id: String! name: String friends: [Character] appearsIn: [Episode] } type Human implements Character { id: String! name: String friends: [Character] appearsIn: [Episode] homePlanet: String } type Droid implements Character { id: String! name: String friends: [Character] appearsIn: [Episode] primaryFunction: String } type Query { hero(episode: Episode): Character human(id: String!): Human droid(id: String!): Droid } We begin by setting up our schema.
ファイルを表示 Open project: webonyx/graphql-php Class Usage Examples

Public Methods

Method Description
build ( )

Method Details

build() public static method

public static build ( )