Skip to content

Discussion: getAutocompleteSuggestions #940

Open
@yoshiakis

Description

@yoshiakis

Hi all,

I was thinking to add a new property graphQLType into items of returned array from getAutocompleteSuggestions, which is a type of GraphQLType and a type object related to the returned label. The reason I was thinking to do it is here.

However, I noticed that this change would affect applications and libraries using getAutocompleteSuggestions. One of these is graphql-language-service-server. I think this library doesn't like this change because it's not only necessary at all but also increases the amount of transferred data.

So I'm now thinking I'll create a new function instead in codemirror-grpahql that returns graphQLType property instead of detail property. Also, some functions used in getAutocompleteSuggestions can be also used in this new function so I want to export those functions from getAutocompleteSuggestions and graphql-language-service-interface and use them in the new function.

What do you think of this idea? Thanks for your opinion in advance.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions