Skip to content

GraphQLReferenceResolver type is missing inside GraphQLResolverMap #2205

@aleccool213

Description

@aleccool213

Note:

The type lives in https://github.com/apollographql/apollo-tooling but this error is specific to using Apollo Server w/ Federation.

  • ❗️ Bug?
    This is the right place! 😄

Before reporting a bug, please check for existing or closed issues
first and read the instructions for filing a bug report:

https://github.com/apollographql/apollo-server/blob/master/CONTRIBUTING.md#reporting-bugs

This bug report should include:

  • A short, but descriptive title. The title doesn't need "Apollo" in it.
  • The package name and version of Apollo showing the problem.

apollo-graphql

  • If applicable, the last version of Apollo where the problem did not occur.

As always occurred, tested on 0.4.1

  • The expected behavior.

I should be able to type a __resolveReference function as GraphQLReferenceResolver and have it work with GraphQLResolverMap.

  • The actual behavior.

TS error as GraphQLReferenceResolver is not a compatible with GraphQLResolverMap under fieldName.

Link to code inside of apollo-tooling:

https://github.com/apollographql/apollo-tooling/blob/master/packages/apollo-graphql/src/schema/resolverMap.ts

Metadata

Metadata

Assignees

No one assigned

    Labels

    🧬 typingsUpdates to type system types

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions