Skip to content

Pure C API doesn't provide a way to access individual list-style subnodes #34

Closed
@martinandert

Description

@martinandert

For example: Given I have a handle to a GraphQLAstSelectionSet, I can access the number of selections contained within it by calling GraphQLAstSelectionSet_get_selections_size. But how do I get a handle to a specific selection in the list? Is there a way to enumerate the selections contained within the selection set without resorting to visitors?

This also applies to other nodes with subnode lists, e.g. Document -> definitions, FragmentSpread -> directives etc.

Disclaimer: As I'm fairly new to all this stuff, I may be missing something really obvious here.

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