99designs / gqlgen

go generate based graphql server library
https://gqlgen.com
MIT License
9.94k stars 1.16k forks source link

Can I disable the suggestions feature? #2408

Open ogoshikazuki opened 2 years ago

ogoshikazuki commented 2 years ago

What happened?

I want to disable the suggestion feature.

What did you expect?

Is it possible to avoid the Did you mean \"me\" below?

Cannot query field \"m\" on type \"Query\". Did you mean \"me\"?

Minimal graphql.schema and models to reproduce

graphql.schema

type Query {
  me: String
}

query

query {
  m
}

versions

carljkempe commented 1 year ago

I second this 💬

right1121 commented 1 year ago

I second this. I would like to disable the suggestion feature for security reasons.

ivanhyf commented 1 year ago

I second this

midorimici commented 4 months ago

I second this.

UnAfraid commented 4 months ago

If someone wants to add support for disabling the suggestions start with https://github.com/vektah/gqlparser/blob/master/validator/rules/scalar_leafs.go#L32