-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Description
Version Information
Server Version: 2.8.3
CLI Version (for CLI related issue): v2.4.0
Environment
What is the current behaviour?
I have a remote schema with a field that resolves to an interface type, where there are some shared fields (such as id, name, and type), and then child fields that inherit from that field. It's much cleaner to do this than to implement unions since most of the child fields have only slightly different fields.
I'm able to query this in the console (when using the admin role). In the example below schema is a field of interface type IWorkspacePropertySchema
But when trying to add remote schema permissions for my resolver, it throws an error saying that it couldn't find the interface type:
{ "path": "$.args[0].args", "error": "Could not find type with name \"IWorkspacePropertySchema\"", "code": "remote-schema-error" }
What is the expected behaviour?
How to reproduce the issue?
1.create a resolver with an object type containing a field that is an interface
2. query for that resolver in the graphql console
3. create remote schema permissions for that resolver using any other role.