Skip to content

Require the full path (without type) for field lookups #8872

@clintongormley

Description

@clintongormley

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions