Skip to content

Bizarre Cannot query field "settings" on type "...". error #652

@josefsabl

Description

@josefsabl

Turns out you cannot query for field starting with set when function is declared like this:

#[Graph\Field]
public function settings(): string

You get Cannot query field "settings" on type "...". error.

Same applies for fields starting with get. function getawayId() ends up in field field awayId.

Obviously there is flaw in how the function names are parsed to match the query fields. Maybe the camel case could be taken into consideration

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions