Netflix / Netflix/dgs-codegen

bug: UploadScalar is not working when i work generateCodegen

Open
#496 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Kotlin
Stars
217
Forks
116
PR merge metrics
No merged PRs in 30d

Description

In my opinion, the issue is not a common situation.
According to the guide, if I only declare 'scalar Upload', isn't Upload created?

  • I wrote the code as below

image

  • Below is the class created when using codegen. Upload scalar is not created

image

  • dependency(build.gradle.kts)

    implementation(platform("com.netflix.graphql.dgs:graphql-dgs-platform-dependencies:5.1.1"))
    implementation("com.netflix.graphql.dgs:graphql-dgs-spring-boot-starter")

  • Upload Scalar built into the dgs framework
    image

what should i do for using Upload scalar that is for access multipart/ form- data?

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.

Research direction

Start with the schema and generated class shown in the issue, then review the build.gradle.kts dependencies and reproduce code generation with scalar Upload. Determine whether the generated output should include an Upload scalar and document or correct the behavior so multipart/form-data usage has a clear supported path.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.