Skip to content

Question: expected behavior for field arguments not defined in interface #401

Closed
@tonyghita

Description

@tonyghita

I have a question about the following clause in the draft spec (under 3.1.2.3).

The object field may include additional arguments not defined in the interface field, but any additional argument must not be required.

http://facebook.github.io/graphql/draft/#sec-Object-type-validation

What is the expected behavior of additional arguments that have a default value? For example:

interface Namer {
  name: String!
}

type User implements Namer {
  id: ID!
  name(type: NameType = FULL): String!
  email: String!
}

enum NameType {
  FULL
  FIRST
  LAST
}

In this example, does User implement Namer?

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