Replies: 1 comment 2 replies
-
This all looks correct to me, and I don't think there should be issues using a prismaObject instead of an objectRef. I wonder if this warning happens because Pothos adds the If adding a field to the subgraph that defines the externalRef makes the warning go away, the above is likely the issue, and we just need to update the plugin to only add the extends directive if the type actually adds fields. |
Beta Was this translation helpful? Give feedback.
-
Hi, Im using two server with pothos on both one called Profiling one called Managing. Im trying to be able to return from Managing a connection to Profiling on the Profile Type..
So what i have done in Profiling is:
I am able to move forward with the rover-cli
Now on the Managing Service side I want to be able to return the Profile Object I have here right. I would say this is pretty standard expectation
Here is what I have on that
But the error that I get on the the rover cli is
When I run an introspection on my endpoints locally, my super graph schema for the Profile type is as follows
Does this mean that a Q/M that goes that runs through the Managing service is able to return values based on the type Profile (which came from Profiling).
Am I building these Object entities correctly from where type ownership graph to the subgraphs that need it.
Also the code in the docs uses objectRef,
const UserType = builder.objectRef('User').implement({
fields: (t) => ({
id: t.exposeID('id'),
name: t.exposeString('name'),
username: t.exposeString('username'),
}),
});
I am using prismaObject (I’ve also tried objectRef) What is the difference and if there is a way to utilize prisma on this route
Thanks
Beta Was this translation helpful? Give feedback.
All reactions