0

I am able to execute upsert query in Hasura UI and I'm using manifold plugin for client classes generation in java. I'm struggling at keeping an on_conflict with multiple fields in .graphql file.
The below schema I'm using in graphql file.

Thanks for your valuable suggestion.
ex: schema:
schema{ mutation: MutationRoot }


MutationRoot

type MutationRoot { insert_indv(objects: [insert_input!]!, on_conflict: input_on_conflict) : response! }

input input_on_conflict{ constraint: input_constraint! update_columns: [input_update_column!]! }

input input_constraint{ input_pk: Int }

input input_update_column{ studentMarks: Int studentRank: Int studentJoinDate: date ..................

Mahender Ambala
  • 363
  • 3
  • 18

1 Answers1

1

Finally, I found an answer graphql-rust/graphql-client, we need to use enums. I'm not aware that in graphQL schema file we can use enums.

Mahender Ambala
  • 363
  • 3
  • 18