这是indexloc提供的服务,不要输入任何密码
Skip to content

Remote Schemas: Can't return interface type when using Remote Schema permissions #8720

@aaka3207

Description

@aaka3207

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

image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions