materio-d9/web/modules/custom/materio_graphql/graphql/materio_extension.base.grap...

41 lines
523 B
GraphQL

type Mutation
scalar Violation
type Materiau {
id: Int!
uuid: String!
title: String!
author: String
memo: String
linked_materials: [Materiau]
images: [Image]
}
type MateriauResponse implements Response {
errors: [Violation]
materiau: Materiau
}
interface Response {
errors: [Violation]
}
input MateriauInput {
title: String!
description: String
}
type Image {
id: Int!
url: String!
alt: String
style_minicard: ImageStyle
}
type ImageStyle {
width: Int
height: Int
url: String
}