Skip to content

Is it possible to use schema types? #508

Open
@yshui

Description

@yshui

Right now types are path based, e.g.:

query RefInfo($owner: String!, $repo: String!, $qTag: String!) {
  repository(owner: $owner, name: $repo) {
    ref(qualifiedName: $qTag) {
      name
      target {
        __typename
        oid
      }
    }
  }
}

target will have type RefInfoRepositoryRefTarget which is long. And what's more important is that if I have another query, its fields' type name will be completely different, despite it could just be the same thing, e.g. a GitObject.

Is there an option to make graphql_client generate schema types, instead of path-based types? Am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions