bug: Template query fails with "Cannot query field" on nodes with multiple generics #6415
Labels
priority/1
This issue must be fixed/implemented ASAP, it's a blocker for a release
type/bug
Something isn't working as expected
Component
API Server / GraphQL
Infrahub version
1.2.8
Current Behavior
When working with nodes that have more than one generic applied, template queries fail with errors like:
This happens even when the attribute being queried is from the same generic as other attributes that are successfully queried.
Expected Behavior
All attributes from all generics applied to a node should be queryable in templates without errors.
Steps to Reproduce
Create a node with multiple generics applied
2. Create a template that queries attributes from these generics
3. Run the template against the node
4. Observe the error "Cannot query field 'xxx' on type 'Templatexxx'"
Additional Information
No response
The text was updated successfully, but these errors were encountered: