Replies: 1 comment
-
You can use this; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey,
So I have this GraphQL monolithic service and I want to rewrite some parts of it in new services and I'm using gRPC in these new services.
I'm having some difficulties when I want to extend the types that I have in that GraphQL service.
So lets say I want to extend the type
User
with the field namedextra_field
(which is coming from the gRPC service) and this is my.meshrc.yaml
:This is the schema file provided by the GraphQL service:
This is the proto file provided by the gRPC service:
When I run the mesh with these configurations the final schema that the mesh generates is not actually what I want.
I think the main issue is that the
user
query gets overwritten with the one that the gRPC service provides.Original query:
Generated query:
The
extra_field
is added to theUser
entity as desired but the query parameter type is changed so I can not call the query like I did before.This is just the setup that I've come up with and I'm open to hearing any suggestion about any part of it.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions