Skip to content

A table in a matrix with the same handle as a table field overrides the schema for the field #10663

@Tam

Description

@Tam

Description

A table field that shares the same handle as a table field in a matrix will have it's type handle_TableRow overridden in the graph schema.

For example, if I have a table in a matrix field called answers and a top-level table field called answers, both will point to the same schema type of answers_TableRow. The properties of this schema will match only one of the types, meaning the values for the other will be incorrect.

Steps to reproduce

  1. Create a table field
  2. Create a matrix field containing a table of the same handle as the above but different columns
  3. Try to query the data from both

Additional info

  • Craft version: 3.7.35
  • PHP version: 8.1.1
  • Database driver & version: MySQL 5.5.5

Metadata

Metadata

Labels

buggraphql ⚙️features related to the GraphQL API

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions