bdunogier / ezplatform-graphql-bundle

GraphQL server for eZ Platform, the open source Symfony CMS.
13 stars 6 forks source link

Add Field Definitions settings to the Content Type object #47

Closed bdunogier closed 6 years ago

bdunogier commented 6 years ago

May require that Content Types are also generated, and Field Types have their own representation for a Field Definition:

{
  _repository {
    contentTypes {
      content {
        article {        
          fieldDefinitions {
            title {
              names
              settings {
                defaultValue
                minLength
                maxLength
              }
            }
            image {
              settings {
                maxSize
              }
            }
            relatedArticles {
              settings {
                selectionLimit
                allowedContentTypes {
                  identifier
                }
              }
            }
            publishDate {
              settings {
                useSeconds
                dateInterval {
                  year
                  month
                  days
                  hours
                  minutes
                  seconds
                }
              }
            }

      }
    }
  }
}
bdunogier commented 6 years ago

Merged to master, under the _types.<typeIdentifier> field of each content type group.