Open Zoe0631 opened 1 year ago
You can add a type mapping in codegen for MultipartFile: https://netflix.github.io/dgs/generating-code-from-schema/#mapping-existing-types
We'll update the documentation to indicate this, but essentially you can try adding a mapping from "Upload" to "org.springfarmework.web.multipart.MultipartFile".
On Wed, Nov 30, 2022 at 1:21 AM Zoe @.***> wrote:
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: image] https://user-images.githubusercontent.com/98700133/204754372-1115bff4-613d-43db-ab43-282b6ede925e.png
- Below is the class created when using codegen. Upload scalar is not created
[image: image] https://user-images.githubusercontent.com/98700133/204755016-6a35c78d-c348-44b5-9a5f-52f4319d3aeb.png
-
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: image] https://user-images.githubusercontent.com/98700133/204756111-9d58924c-b4d2-4805-a979-659c8db3e067.png
what should i do for using Upload scalar that is for access multipart/ form- data?
— Reply to this email directly, view it on GitHub https://github.com/Netflix/dgs-codegen/issues/496, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJ5JPXO7MXRLFDNLPZ7ZCDLWK4MDHANCNFSM6AAAAAASPM25GY . You are receiving this because you are subscribed to this thread.Message ID: @.***>
In my opinion, the issue is not a common situation. According to the guide, if I only declare 'scalar Upload', isn't Upload created?
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
what should i do for using Upload scalar that is for access multipart/ form- data?