mirror of
https://github.com/strapi/strapi.git
synced 2025-12-27 23:24:03 +00:00
Fixes #1164
This commit is contained in:
parent
1f2a0e5b8b
commit
3805f3bc95
@ -429,6 +429,7 @@ module.exports = {
|
||||
|
||||
// Convert our layer Model to the GraphQL DL.
|
||||
const attributes = Object.keys(model.attributes)
|
||||
.filter(attribute => model.attributes[attribute].private !== true)
|
||||
.reduce((acc, attribute) => {
|
||||
// Convert our type to the GraphQL type.
|
||||
acc[attribute] = this.convertType(model.attributes[attribute]);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user