Hi,
I was referring to : Uploading files - Apollo GraphQL Docs. Is there a way to handle multipart in java with JVM outside of kotlin?
I tried upload a file but it doesn’t work as we do not work on JSON format. We have a custom format for the upload file, is there a way in which we can handle this usecase? When every i pass File object fails with below error
Error :java.lang.IllegalStateException: Cannot write test.sls to Json
at com.apollographql.apollo3.api.json.-JsonWriters.writeAny(JsonWriters.kt:40)
at com.apollographql.apollo3.api.Adapters$AnyAdapter$1.toJson(Adapters.kt:176)
at com.apollographql.apollo3.api.Adapters$AnyAdapter$1.toJson(Adapters.kt:184)
at com.vmware.guardrails.e2e.adapter.CreateTemplateMutation_VariablesAdapter.toJson(CreateTemplateMutation_VariablesAdapter.java:51)
Thanks,
Krishna