-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Virtual field breaks AdminUI #3210
Comments
you need to add graphQLReturnFragment: `{
...ArticleFields
}`, |
@gautamsi Thanks -- I'll try that. What is the role of |
I would suggest -- if it's accurate -- that the documentation say something like "For more complex types you must also define a graphQLReturnFragment as well as extendGraphQLTypes." |
It looks like there hasn't been any activity here in over 6 months. Sorry about that! We've flagged this issue for special attention. It wil be manually reviewed by maintainers, not automatically closed. If you have any additional information please leave us a comment. It really helps! Thank you for you contribution. :) |
nice! it really help me a lot to learn and give me a lot of information. #Virtual Visual Field |
It looks like there hasn't been any activity here in over 6 months. Sorry about that! We've flagged this issue for special attention. It wil be manually reviewed by maintainers, not automatically closed. If you have any additional information please leave us a comment. It really helps! Thank you for you contribution. :) |
Keystone 5 has officially moved into active maintenance mode as we push towards the next major new version Keystone Next, you can find out more information about this transition here. In an effort to sustain the project going forward, we're cleaning up and closing old issues such as this one. If you feel this issue is still relevant for Keystone Next, please let us know. |
I set up a virtual field
relatedArticles
in myArticle
fieldthe resolver for which is as follows
and this worked fine. However when I went to the AdminUI and clicked on an article I got an error
when I checked the browser console log I saw
and when I checked the Keystone logs I found
which led to the query
If I removed the
GraphQLReturnType
from my virtual field description, the AdminUI worked but the GraphQL API broke, since it was now assuming that therelatedFields
were a string, not an array of Articles.The text was updated successfully, but these errors were encountered: