graphql icon indicating copy to clipboard operation
graphql copied to clipboard

Add PUSH and POP operations for enums and custom scalars

Open Andy2003 opened this issue 2 years ago • 0 comments

I suggest to add PUSH and POP operations to array fields of custom scalars and enums.

Schema:

scalar CustomScalar
enum E {
   foo, bar
}

type Movie {
  id: ID
  customScalar: [CustomScalar!]
  enumField: [E!]
}

should generate

input MovieUpdateInput {
  customScalar: [CustomScalar!]
  customScalar_POP: Int
  customScalar_PUSH: [CustomScalar!]
  enumField: [E!]
  enumField_POP: Int
  enumField_PUSH: [E!]
  id: ID
}

Andy2003 avatar Jan 05 '23 11:01 Andy2003