Skip to content

Column Suffixes  #93

@andrewfairlie

Description

@andrewfairlie

Craft introduced column suffixes for new fields, but it seems like the GraphQL queries on Preparse fields aren't querying against the field column. Unsure if this is a Craft bug or Preparse Field bug.

EG: Our test query

{
  events:entries(section:"events", calendarDatesEnd: "now", limit: 1){
    title
    ... on events_default_Entry {
      calendarDatesEnd
    }
  }
}

Returns the following SQL error

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'content.field_calendarDatesEnd' in 'where clause'

The column is actually content.field_calendarDatesEnd_urqjyipm because of the suffix Craft adds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions