You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for taking the time to submit this! Unfortunately, our team was not been able to reproduce it based on the information provided. Therefore, we will close this ticket for now, but will happily re-open it if new details are provided that allow us to reliably replicate the problem.
As a reminder:
Provide as much detail as possible in the issue description
Video screen captures and clear steps are very helpful
A full SQL dump is the fastest way for us to test/resolve (can be sent privately)
Make sure you are on the latest version of Directus
Preflight Checklist
Describe the Bug
The moment I make the Translations of a Model public so I can query then via GraphQL an error appears.
TypeError[snippet_translations.languages_code]: Definition object should contain 'type' property: Object({ type: undefined, resolve: [function resolve] })
To Reproduce
Start a new Instance with 9.5.1 and add a translation to one Model.
-> Mark Model as public and it's translation and try to query it.
Errors Shown
19:50:11 🚨 TypeError[snippet_translations.languages_code]: Definition object should contain 'type' property: Object({ type: undefined, resolve: [function resolve] })
Error: TypeError[snippet_translations.languages_code]: Definition object should contain 'type' property: Object({ type: undefined, resolve: [function resolve] })
at TypeMapper.convertOutputFieldConfig (/directus/node_modules/graphql-compose/lib/TypeMapper.js:230:27)
at ObjectTypeComposer.setField (/directus/node_modules/graphql-compose/lib/ObjectTypeComposer.js:162:46)
at /directus/node_modules/graphql-compose/lib/ObjectTypeComposer.js:168:18
at Array.forEach ()
at ObjectTypeComposer.addFields (/directus/node_modules/graphql-compose/lib/ObjectTypeComposer.js:167:32)
at getTypes (/directus/node_modules/directus/dist/services/graphql.js:339:105)
at getReadableTypes (/directus/node_modules/directus/dist/services/graphql.js:398:62)
at GraphQLService.getSchema (/directus/node_modules/directus/dist/services/graphql.js:134:41)
at GraphQLService.execute (/directus/node_modules/directus/dist/services/graphql.js:91:29)
at /directus/node_modules/directus/dist/controllers/graphql.js:27:40
19:50:11 ✨ request errored POST 500 /graphql 17ms
What version of Directus are you using?
9.5.1
What version of Node.js are you using?
16.13.0
What database are you using?
CockroachDB
What browser are you using?
Chrome / Safari / Postman / Firefox
What operating system are you using?
Docker / OSX / Linux
How are you deploying Directus?
Docker
The text was updated successfully, but these errors were encountered: