Skip to content

Use metadata to create gRPC client #5836

Open
@irux

Description

@irux

Is your feature request related to a problem? Please describe.

Right now the gRPC client is not using the metadata for listing the services.

https://github.com/redhoyasa/grpc-reflection-js/blob/master/src/client.ts#L17

https://github.com/Urigo/graphql-mesh/blob/master/packages/handlers/grpc/src/index.ts#L101

This cause that listing endpoints that needs the metadata fail.

I would like to allow the client to send the metadata when it is listing the services.

Describe alternatives you've considered

I am not an expert in gRPC but it seems that adding the metadata to the constructor should solve the problem. Maybe someone with more experience with gRPC and the graph-mesh project could know better.

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