-
Notifications
You must be signed in to change notification settings - Fork 46
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
TypeError: Cannot read properties of undefined (reading 'length') #152
Comments
No I'm not trying to create a new version of content. I'm creating a record itself, just fresh content item. This plugin breaks a regular content item creation using common method. This should not work like this. Please reopen. |
@seleckis I asked a developer who created this plugin and he said that it does not support GraphQL at all so you would probably run into another issues with it. I am sorry for this information. I will put it Readme and possibly even to roadmap. |
This is really sad. So you have to write in Readme not just "this plugin does not support GraphQL", but "This plugin conflicts with GraphQL plugin", because even just installing Content Versioning plugin and not using it, it breaks regular GraphQL plugin functionality. Or if the plugin breaks regular content creation api and requires to use you custom api, then this should also be mentioned in Readme. But I don't know what is the real reason. |
Good point. Unfortunately, to remove the need to patch strapi admin package we had to use entity service decorator (strapis internal api) which is probably why the GraphQL content creation is broken. There are always tradeoffs. So sorry again but this would require complete rework of the plugin. |
Right after installation any content creation using GraphQL causes error:
Steps to reproduce the behavior
adopt for your schema.
5. See error
Expected behavior
Content should be created as usual.
System
The text was updated successfully, but these errors were encountered: