github.com/opiuman/genqlient@v1.0.0/generate/testdata/queries/Omitempty.graphql (about) 1 # @genqlient(omitempty: true) 2 # @genqlient(for: "UserQueryInput.id", omitempty: false) 3 query OmitEmptyQuery( 4 $query: UserQueryInput, 5 $queries: [UserQueryInput], 6 $dt: DateTime, 7 $tz: String, 8 # @genqlient(omitempty: false) 9 $tzNoOmitEmpty: String, 10 ) { 11 user(query: $query) { id } 12 users(query: $queries) { id } 13 maybeConvert(dt: $dt, tz: $tz) 14 convert2: maybeConvert(dt: $dt, tz: $tzNoOmitEmpty) 15 }