Skip to content

Completions in graphql calls #22

@zardoy

Description

@zardoy

TODO provide more examples here, minimal graphql client, (also from react query), apollo
GitHub client example:

import { graphql } from '@octokit/graphql'
const gql = String.raw
graphql(gql`
        query someRepos(
            $first: Int!
            $orderByField: RepositoryOrderField!
            $endCursor: String
            $affiliations: [RepositoryAffiliation]
            $privacy: RepositoryPrivacy
        ) {}
`, {
    // suggest these params here
})

Probably makes sense to move this functionality to Apollo extension.

Metadata

Metadata

Assignees

No one assigned

    Labels

    low-priorityNot in my personal plan/roadmap. Pr still welcome!need-eslint-rule... to avoid regression. Because completion can be changed in future (rename refactor/removed)suggestions-newIntroduce new dynamic suggestions in some places

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions