Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to push graphql custom resolvers with same field_name #206

Open
mattohoh opened this issue Sep 16, 2021 · 1 comment
Open

Unable to push graphql custom resolvers with same field_name #206

mattohoh opened this issue Sep 16, 2021 · 1 comment

Comments

@mattohoh
Copy link

I have 2 custom resolvers which resolve owner user data for different parent types
it’s defined like this (the on_type is different for another parent type)

{
    "field_name": "ownerData",
    "function_name": "resolveOwnerData",
    "input_type_format": "",
    "on_type": "Template",
    "payload_type": "User",
    "payload_type_format": "generated"
}

when I run realm-cli, it shows error

push failed: must specify unique names when importing CustomResolvers; duplicate name: ownerData

if I change one field_name to another different string, it can be pushed normally

Moreover, I tried to create a custom resolver in realm web UI, it can be created normally, both resolvers have the same field name

image

And then I export the app from the web UI, unzip it and try to push it again, it shows the same error as above

@mattohoh mattohoh changed the title Unable to push graphql custom resolvers with same field_name Unable to push graphql custom resolvers with same field_name Sep 16, 2021
@ivanBereznev
Copy link

Seems to be the same issue as described here: #29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants