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 사용 예제들

공개 메소드들

메소드 설명
boolean ( ) Let's add internal types as well for consistent experience
comment ( ) : CommentType
contentFormatEnum ( ) : ContentFormatEnum
email ( )
float ( ) : FloatType
htmlField ( $name, null $objectKey = null ) : array
id ( ) : IDType
image ( ) : ImageType
imageSizeEnum ( ) : ImageSizeEnumType
int ( ) : IntType
listOf ( Type $type ) : ListOfType
mention ( ) : SearchResultType
node ( ) : NodeType
nonNull ( Type $type ) : NonNull
query ( ) : QueryType
story ( ) : StoryType
string ( ) : StringType
url ( ) : UrlType
user ( ) : UserType

메소드 상세

boolean() 공개 정적인 메소드

Let's add internal types as well for consistent experience
public static boolean ( )

comment() 공개 정적인 메소드

public static comment ( ) : CommentType
리턴 GraphQL\Examples\Blog\Type\CommentType

contentFormatEnum() 공개 정적인 메소드

public static contentFormatEnum ( ) : ContentFormatEnum
리턴 GraphQL\Examples\Blog\Type\Enum\ContentFormatEnum

email() 공개 정적인 메소드

public static email ( )

float() 공개 정적인 메소드

public static float ( ) : FloatType
리턴 GraphQL\Type\Definition\FloatType

htmlField() 공개 정적인 메소드

public static htmlField ( $name, null $objectKey = null ) : array
$name
$objectKey null
리턴 array

id() 공개 정적인 메소드

public static id ( ) : IDType
리턴 GraphQL\Type\Definition\IDType

image() 공개 정적인 메소드

public static image ( ) : ImageType
리턴 GraphQL\Examples\Blog\Type\ImageType

imageSizeEnum() 공개 정적인 메소드

public static imageSizeEnum ( ) : ImageSizeEnumType
리턴 GraphQL\Examples\Blog\Type\Enum\ImageSizeEnumType

int() 공개 정적인 메소드

public static int ( ) : IntType
리턴 GraphQL\Type\Definition\IntType

listOf() 공개 정적인 메소드

public static listOf ( Type $type ) : ListOfType
$type GraphQL\Type\Definition\Type
리턴 GraphQL\Type\Definition\ListOfType

mention() 공개 정적인 메소드

public static mention ( ) : SearchResultType
리턴 GraphQL\Examples\Blog\Type\SearchResultType

node() 공개 정적인 메소드

public static node ( ) : NodeType
리턴 GraphQL\Examples\Blog\Type\NodeType

nonNull() 공개 정적인 메소드

public static nonNull ( Type $type ) : NonNull
$type GraphQL\Type\Definition\Type
리턴 GraphQL\Type\Definition\NonNull

query() 공개 정적인 메소드

public static query ( ) : QueryType
리턴 GraphQL\Examples\Blog\Type\QueryType

story() 공개 정적인 메소드

public static story ( ) : StoryType
리턴 GraphQL\Examples\Blog\Type\StoryType

string() 공개 정적인 메소드

public static string ( ) : StringType
리턴 GraphQL\Type\Definition\StringType

url() 공개 정적인 메소드

public static url ( ) : UrlType
리턴 GraphQL\Examples\Blog\Type\Scalar\UrlType

user() 공개 정적인 메소드

public static user ( ) : UserType
리턴 GraphQL\Examples\Blog\Type\UserType