ChilliCream / ChilliCream/graphql-platform

Input Object Type Validation 2021 Spec

Open
#3,817 0 comments 0 reactions 1 assignee View on GitHub

@wonbyte is already working on this.

Since Jun 9, 2021.

⚖️ spec 🌶️ hot chocolate Area: Type System
Dominant language
C#
Stars
5.8k
Forks
810
Avg merge
15h 39m
Merged PRs (30d)
98

Description

https://spec.graphql.org/June2018/#sec-Input-Objects

Type Validation

  1. An Input Object type must define one or more input fields.
  2. For each input field of an Input Object type
    a. The input field must have a unique name within that Input Object type; no two input fields may share the same name.
    b. The input field must not have a name which begins with the characters "__" (two underscores).
  3. The input field must accept a type where IsInputType(inputFieldType) returns true.

Already Implemented:

  1. https://github.com/ChilliCream/hotchocolate/blob/c1eb36cf3542572372847c5e38f4bc349bc22bfa/src/HotChocolate/Core/src/Types/Types/FieldCollection.cs#L58

  2. b. https://github.com/ChilliCream/hotchocolate/blob/c1eb36cf3542572372847c5e38f4bc349bc22bfa/src/HotChocolate/Core/src/Types/Configuration/Validation/ComplexOutputTypeValidationHelper.cs#L37

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.