Skip to content

Houdini adding id field breaks query if id field is not scalar (i.e. aggregates) #1514

@olmohake

Description

@olmohake

Describe the bug

Using any query including an aggregate will result in the following errror:

{
fetching: false,
variables: { id: '9c5cf10b-fd2a-4052-aced-a0478000e766' },
data: null,
errors: [ { message: 'validation failed: no fields are selected' } ],
partial: false,
stale: false,
source: 'network'
}

Running same query directly against hasura v3/ddn will resolve without any errors.
Any idea why or how to fix this?

Reproduction

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions