fixed thematiques display

This commit is contained in:
2021-03-03 17:55:32 +01:00
parent 72ea56e313
commit 6485e3e27b
8 changed files with 611 additions and 134 deletions

View File

@@ -1,19 +1,39 @@
scalar Violation
interface NodeInterface {
id: Int!
path: String!
}
type Materiau implements NodeInterface {
id: Int!
uuid: String!
title: String!
path: String!
author: String
body: String
bundle: String!
}
interface SearchResultInterface {
id: Int!
uuid: String!
title: String!
path: String!
author: String
bundle: String!
#
short_description: String
body: String
linked_materials: [Materiau]
}
type Materiau implements NodeInterface & SearchResultInterface{
id: Int!
uuid: String!
title: String!
path: String!
author: String
bundle: String!
#
short_description: String
body: String
linked_materials: [Materiau]
#
linked_articles: [Article]
images: [Image]
videos: [VideoLink]
@@ -23,11 +43,28 @@ type Materiau implements NodeInterface {
attachments: [Filefield]
distributor: [Company]
manufacturer: [Company]
# famille: String
# index: Int
reference: String
samples: [Sample]
note: Note
# famille: String
# index: Int
}
type Thematique implements NodeInterface & SearchResultInterface {
id: Int!
uuid: String!
title: String!
path: String!
author: String
bundle: String!
#
short_description: String
body: String
linked_materials: [Materiau]
#
images: [Image]
tags: [Tag]
memo: String
}
type Article implements NodeInterface {
@@ -36,6 +73,8 @@ type Article implements NodeInterface {
title: String!
path: String!
author: String
bundle: String!
#
body: String
linked_materials: [Materiau]
images: [Image]
@@ -48,37 +87,24 @@ type Article implements NodeInterface {
memo: String
}
type Thematique implements NodeInterface {
id: Int!
uuid: String!
title: String!
path: String!
author: String
body: String
linked_materials: [Materiau]
images: [Image]
tags: [Tag]
memo: String
}
type Note {
id: Int!
contenu: String
target: Int
}
type SearchResult {
id: Int!
uuid: String!
title: String!
bundle: String!
path: String!
short_description: String
images: [Image]
visuels: [Image]
reference: String
samples: [Sample]
}
# type SearchResult {
# id: Int!
# uuid: String!
# title: String!
# bundle: String!
# path: String!
# short_description: String
# images: [Image]
# visuels: [Image]
# reference: String
# samples: [Sample]
# }
type Product {
id: Int!

View File

@@ -11,7 +11,7 @@ extend type Query {
}
extend type Query {
searchresults(ids: [Int], lang: String): [SearchResult]
searchresults(ids: [Int], lang: String): [SearchResultInterface]
}
extend type Query {