mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 08:19:07 +00:00
fix(graphql): update enumeration detection
This commit is contained in:
parent
30d5ea4777
commit
bdd1dc9e0d
@ -486,7 +486,7 @@ module.exports = {
|
||||
|
||||
// Detect enum and generate it for the schema definition
|
||||
const enums = Object.keys(model.attributes)
|
||||
.filter(definition => definition.type === 'enumeration')
|
||||
.filter(attribute => model.attributes[attribute].type === 'enumeration')
|
||||
.map((attribute) => {
|
||||
const definition = model.attributes[attribute];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user