Skip to content

required field on Parse Schema is not handled correctly on special types on the GQL API #8914

Closed
@Moumouls

Description

@Moumouls

New Issue Checklist

Issue Description

When a special field like File is required on the Parse Schema, mutations fails because the GQL type is wrapped by a GraphQL Non Null type.

Steps to reproduce

Add a "required: true" to a special field like a field with a type "File", and attempt a mutation

Actual Outcome

Mutation fails, Parse fail to recognize correctly the special field.

Expected Outcome

Environment

Server

  • Parse Server version: 7.0.0
  • Operating system: MacOS
  • Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): Local

Database

  • System (MongoDB or Postgres): Mongo
  • Database version: 6.0.2
  • Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): FILL_THIS_OUT

Client

  • SDK (iOS, Android, JavaScript, PHP, Unity, etc): FILL_THIS_OUT
  • SDK version: FILL_THIS_OUT

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    state:releasedReleased as stable versionstate:released-alphaReleased as alpha versionstate:released-betaReleased as beta versiontype:bugImpaired feature or lacking behavior that is likely assumed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions