PHP 클래스 GraphQL\Examples\Blog\Types
Acts as a registry and factory for your types.
As simplistic as possible for the sake of clarity of this example.
Your own may be more dynamic (or even code-generated).
파일 보기
프로젝트 열기: webonyx/graphql-php
1 사용 예제들
공개 메소드들
메소드 상세
Let's add internal types as well for consistent experience
contentFormatEnum()
공개 정적인 메소드
public static contentFormatEnum ( ) : ContentFormatEnum |
리턴 |
GraphQL\Examples\Blog\Type\Enum\ContentFormatEnum |
|
public static float ( ) : FloatType |
리턴 |
GraphQL\Type\Definition\FloatType |
|
public static id ( ) : IDType |
리턴 |
GraphQL\Type\Definition\IDType |
|
public static image ( ) : ImageType |
리턴 |
GraphQL\Examples\Blog\Type\ImageType |
|
imageSizeEnum()
공개 정적인 메소드
public static imageSizeEnum ( ) : ImageSizeEnumType |
리턴 |
GraphQL\Examples\Blog\Type\Enum\ImageSizeEnumType |
|
public static int ( ) : IntType |
리턴 |
GraphQL\Type\Definition\IntType |
|
public static listOf ( Type $type ) : ListOfType |
$type |
GraphQL\Type\Definition\Type |
|
리턴 |
GraphQL\Type\Definition\ListOfType |
|
public static mention ( ) : SearchResultType |
리턴 |
GraphQL\Examples\Blog\Type\SearchResultType |
|
public static node ( ) : NodeType |
리턴 |
GraphQL\Examples\Blog\Type\NodeType |
|
public static nonNull ( Type $type ) : NonNull |
$type |
GraphQL\Type\Definition\Type |
|
리턴 |
GraphQL\Type\Definition\NonNull |
|
public static query ( ) : QueryType |
리턴 |
GraphQL\Examples\Blog\Type\QueryType |
|
public static story ( ) : StoryType |
리턴 |
GraphQL\Examples\Blog\Type\StoryType |
|
public static string ( ) : StringType |
리턴 |
GraphQL\Type\Definition\StringType |
|
public static url ( ) : UrlType |
리턴 |
GraphQL\Examples\Blog\Type\Scalar\UrlType |
|
public static user ( ) : UserType |
리턴 |
GraphQL\Examples\Blog\Type\UserType |
|