Skip to content

Missing mention of Type can only refer to Input Object types in field arguments #447

Closed
@tinganho

Description

@tinganho

In the section 3.6.1 Field Arguments: http://facebook.github.io/graphql/draft/#sec-Field-Arguments

Object fields are conceptually functions which yield values. Occasionally object fields can accept arguments to further specify the return value. Object field arguments are defined as a list of all possible argument names and their expected input types.

All arguments defined within a field must not have a name which begins with "__" (two underscores), as this is used exclusively by GraphQL’s introspection system.

For example, a Person type with a picture field could accept an argument to determine what size of an image to return.

It misses to mention that if a Type is a NamedType it can only refer to the name of an input object type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions