graphql-go / graphql-go/graphql

Cannot query field \"namespaceList\" on type \"Query\"."

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

Description

Find below example , the query "namespaceList" is not picking, it shows "Cannot query field \"namespaceList\" on type \"Query\"." error .
var Query = graphql.NewObject(
graphql.ObjectConfig{
Name: "Query",
Fields: graphql.Fields{
"namespaceList": &graphql.Field{
Type: kubernetes_schema.ListNameSpaceResponse,
Description: "kubernetes cluster namespace list",
Args: graphql.FieldConfigArgument{
"clusterId": &graphql.ArgumentConfig{
Type: graphql.NewNonNull(graphql.String),
},
},
Resolve: kubernetes.ListNameSpace,
},

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.