Currently it is possible to refer to fields using:
- a short name (eg
first)
- the full path (eg
name.first)
- the full path with the type prepended (eg
employee.name.first) which automatically wraps a query clause with a filter on the _type field.
This method of field resolution is ambiguous.
Instead, we will require that the full path is used at all times, and that the type name cannot be prepended. If the user needs to filter on the _type field, then they should include an explicit filter.
Wildcarded field names will still be supported, eg name.* or *.first. Wildcards will apply to the whole path.
For bwc, we should add a static setting to allow the old method of field resolution in the 2.x series.
Relates to #8870
Currently it is possible to refer to fields using:
first)name.first)employee.name.first) which automatically wraps a query clause with a filter on the_typefield.This method of field resolution is ambiguous.
Instead, we will require that the full path is used at all times, and that the type name cannot be prepended. If the user needs to filter on the
_typefield, then they should include an explicit filter.Wildcarded field names will still be supported, eg
name.*or*.first. Wildcards will apply to the whole path.For bwc, we should add a static setting to allow the old method of field resolution in the 2.x series.
Relates to #8870