Skip to content

HAMUR_E5340: Two collections have one GraphQL Query field

Two collections have one GraphQL Query field. Error HAMUR_E5340 belongs to @hamur/content (5301 – 5400).

Message

text
HAMUR_E5340 content.api.graphql: Query.<field> of collection "<name>" is also Query.<field> of collection "<other>"; rename one

Cause

Two collections give the same Query field in the generated GraphQL schema.

Fix

Rename one of the collections.