Skip to content
This repository was archived by the owner on Oct 26, 2025. It is now read-only.
This repository was archived by the owner on Oct 26, 2025. It is now read-only.

Add support for showing fns which aren't implemented in the Type resolver fns #5

Description

@orta

Overview

type User implements Node {
    id: ID!
    slug: String!
    homepage: String!
    accountPage: String!
}

service/user.ts

const User: UserTypeResolvers = {
   homepage: ({root }) =>  "/user/" +root.slug,
   |
}

Auto-complete at the bar, should have id, slug, accountPage

Right now we only use existence of a fn in the service to indicate that there should be a type there.

IMO, we probably want UserTypeResolvers to be fully optional with all possible examples. We can still tighten the fns on the type when they are used, but we do need to be wary that there can be multiple places where a type can have resolvers added

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesttype: featureNew enhancement or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions