Closed buffalom closed 8 months ago
I've just started seeing this issue with a Replicator field on the Users blueprint, I'm not querying users via GraphQL but it's breaking the /graphql endpoint for me. The Replicator field isn't a recent addition either, it's happily been on the blueprint for around 4 months.
Running Statamic 3.3.60 here, previously running 3.3.42 (updated when the issue appeared).
I've not had a chance to have a good poke around yet, but I'm going to try register the type myself (like you suggested) and see if that helps in the short term.
EDIT: So I registered the type manually, which threw a load of different errors - I since discovered that there was a bit of malformed GraphQL in the actual query which was completely unrelated to Users. @Buffalom - obviously there is still something fishy going on with User blueprints and additional fields, but could be worth checking your GraphQL query to see if there are any malformed queries in there, that may be tripping up this error.
Hey 👋
I'm unable to reproduce this issue on the latest version of Statamic. I can query fields in a Grid fieldtype as expected:
I believe this was fixed by #8335.
I'm going to close this issue now. If you're still experiencing this issue, please leave a comment and we can re-open the issue. Thanks!
Bug description
A grid fieldtype on a user blueprint does not register itself as a GraphQL type and therefore results in an error
Type GridItem_History not found
.I assume the TypeRegistrar does not tell the UserInterface to register all types.
How to reproduce
I created a field named "history" with type
grid
on the user blueprint. When I open localhost/cp/graphiql the errorType GridItem_History not found.
is logged and the application breaks.If this does not work for you: I registered the GraphQL schema mysqlf according to the Statamic docs.
The issue is resolved, as soon as I register the type myself:
Logs
Installation
Fresh statamic/statamic site via CLI
Antlers Parser
No response
Additional details
I hope you can reproduce this. If not, let me know and I'll dig deeper and add a reproduction repo.