graphql-go / graphql-go/graphql

Make the selection set available in the resolve function as a simple accessible struct

Open
#535 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
10.1k
Forks
845
PR merge metrics
No merged PRs in 30d

Description

Currently, the selection set is available in the following place, nested deeply and I don't know where will I stumble upon a nil reference.

params.Info.Operation.GetSelectionSet().Selections

We need a way to access the selection set as a simple and accessible struct, which can be used to make decisions on which backends to hit or not.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.