Skip to content

Object encoding not used for nested query arguments #425

@HawkOnPK

Description

@HawkOnPK

We have a nested graphql query

steps: [
  {timeframe: datetimerange}, 
  {
    output: [
      {timeframe: datetimerange},
      {outputid: true}
    ]
  }
]

where the datetimerange of type DateTimeRange is registered as a scalar with its own encoding function.

The encoding function is called correctly for the first "timeframe" argument, but is never called for the second, for which none of the encodings are called, even though it is of the same type (even same object) as the first argument.
The first argument is thus correctly encoded into a json, the second instead appears as (empty) fields of the base class {_lower: {},\n_upper: {},\n_bounds: \"[)\",\n_empty: false}.

If only the first argument is given and the second skipped, it works.
If only the second argument is given and the first skipped, it works as well.
It does not differ, whether the values given to the two "timeframe" arguments are the same object of different ones.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions