Closed rodrigo-arias closed 20 hours ago
Nevermind, seems that GraphQL doesn't support union on scalar types. Maybe you can give me an idea how to solve this
Hi @pristas-peter We have confirmed that this fix works for us.
Related to this issue: https://github.com/pristas-peter/wp-graphql-gutenberg/issues/158
@pristas-peter for the
templateLock
attribute the type is declared as an array instead of a string. This code creates a union and avoids the warning.Closes #127
Let me know if it makes sense to you. I tried to follow the code standard of the file although it does not match WordPress-Core. Thanks