GraphiQL API Documentation
    Preparing search index...

    The dependency-less streaming token parser used for getAutocompleteSuggestions, getHover and more

    • Returns the token, state, typeInfo and mode at the cursor position Used by getAutocompleteSuggestions

      Parameters

      • queryText: string
      • cursor: IPosition
      • schema: GraphQLSchema
      • OptionalcontextToken: ContextToken
      • Optionaloptions: {
            experimentalFragmentArguments?: boolean;
            fragmentDefinitions?: readonly FragmentDefinitionNode[];
            mode?: GraphQLDocumentMode;
            uri?: string;
        }
      • offset: number = 0

      Returns
          | {
              mode: GraphQLDocumentMode;
              state: State;
              token: ContextToken;
              typeInfo: AllTypeInfo;
          }
          | null