Skip to content

Commit

Permalink
Merge branch '4.1' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
barw4 committed Jul 12, 2022
2 parents 01fc89d + ee71463 commit 743e70c
Showing 1 changed file with 10 additions and 18 deletions.
28 changes: 10 additions & 18 deletions src/bundle/Resources/config/graphql/Field.types.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,30 +88,22 @@ AuthorFieldValue:
email:
type: "String"

BinaryBaseFieldValue:
BinaryFileFieldValue:
type: object
config:
fields:
id:
type: String
fileName:
type: String
type: "String"
resolve: "@=value.fileName"
fileSize:
type: Int
type: "Int"
resolve: "@=value.fileSize"
mimeType:
type: String
type: "String"
resolve: "@=value.mimeType"
uri:
type: String
text:
type: String

BinaryFileFieldValue:
type: object
config:
fields:
downloadCount:
type: Int
inherits: [BinaryBaseFieldValue]
type: "String"
resolve: "@=value.uri"

CountryFieldValue:
type: object
Expand Down Expand Up @@ -207,7 +199,7 @@ MediaFieldValue:
type: Int
description: "Width of the media."
resolve: "@=value.width"
inherits: [BinaryBaseFieldValue]
inherits: [BinaryFileFieldValue]

PriceFieldValue:
type: object
Expand Down

0 comments on commit 743e70c

Please sign in to comment.