Skip to content

Website: Schema-first example for Mutations page contains incorrect schema #3805

@seclerp

Description

@seclerp

This page (Schema-first approach tab) contains incorrectly defined BookInput type. It should be declared as input, not as type, because nested types inside inputs could be only input types and not object types.

Need to be changed from this:

type BookInput {
  title: String
  author: String
}

To this:

input BookInput {
  title: String
  author: String
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    📚 documentationThis issue is about working on our documentation.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions