Skip to content

Generate TypeScript/Flow types for resolvers from the schema #404

@illegalprime

Description

@illegalprime

So far we've been trying to implement GraphQL for our microservices at HackGT/registration#159, but when implementing a resolver I have no type definitions for the resolver or for my GraphQL schema (typescript). I've tried solutions like graphql-typewriter but the types it generates has no root parameter in the query function signature (i.e. it is (args, context) and not (obj, args, context)).

Does this fit under this repo or is there another solution I'm not seeing?

My current workaround is manually typing everything.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew addition or enhancement to existing solutions

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions