payload
payload copied to clipboard
Tab `interfaceName` triggers schema error
Link to reproduction
No response
Describe the Bug
Setting an interfaceName on a tab and reusing that tab declaration triggers a schema error as follows:
/Users/seth/dev/backend/node_modules/graphql/type/schema.js:219
throw new Error(
^
Error: Schema must contain uniquely named types but contains multiple types named "SyndicationsInterface".
I can confirm there are no naming collisions (unless I'm misunderstanding the usage here).
To Reproduce
Create a tab as follows:
{
type: 'tabs',
tabs: [
{
label: 'Syndications',
name: 'syndications',
interfaceName: 'SyndicationsInterface',
fields: [ ...
Add this tab to 2 collections and attempt to start the development server.
Payload Version
2.5.0
Adapters and Plugins
db-mongodb bundler-webpack