Closed nikitastupin closed 1 year ago
Following document returns following suggestions:
mutation { setNameFor }
Cannot query field \"setNameFor\" on type \"Mutation\". Did you mean \"setNameForHome\", \"setNameForCamera\", or \"setNameForHomeSensor\"?
However similar document returns less suggestions:
mutation { setName }
Cannot query field \"setName\" on type \"Mutation\". Did you mean \"setNameForHome\"?
If we would know the algorithm apollo-server uses for suggestion generation we'd potentially speed up guessing of fields, arguments and so on.
It looks like suggestions implemented in underlying graphql-js library. The actual algorithm implemented in suggestionList() function.
Following document returns following suggestions:
However similar document returns less suggestions:
If we would know the algorithm apollo-server uses for suggestion generation we'd potentially speed up guessing of fields, arguments and so on.