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

One-sided relationships are broken #8098

Closed
fkrauthan opened this issue Nov 18, 2022 · 2 comments · Fixed by #8099
Closed

One-sided relationships are broken #8098

fkrauthan opened this issue Nov 18, 2022 · 2 comments · Fixed by #8099

Comments

@fkrauthan
Copy link
Contributor

I just updated my project to the latest version of keystone and when having a list like this:

export const Post = list({
   access: allowAll,
    fields: {
        author: relationship({ ref: "User", many: false }),
    },
});

and try to access it from the UI the page just shows an endless spinner. When looking at the developer tools it seems like it is triggering a search that is invalid:

{"errors":[{"message":"Cannot query field \"authorCount\" on type \"Post\". Did you mean \"author\"?","locations":[{"line":6,"column":5}],"extensions":{"code":"GRAPHQL_VALIDATION_FAILED","exception":{"stacktrace":["GraphQLError: Cannot query field \"authorCount\" on type \"Post\". Did you mean \"author\"?","    at Object.Field 

So right now all my lists that use one-sided relationships can't be accessed from the UI anymore.

@dcousens
Copy link
Member

Hi @fkrauthan, please see today's release that fixes this.
If you find any other regressions, please let us know 💛

@fkrauthan
Copy link
Contributor Author

Perfect that fixes it. Thank you so much for the quick turnaround. I am really looking forward using the grouping and moving items to the sidebar feature :)

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

Successfully merging a pull request may close this issue.

2 participants