fixed thematiques display
This commit is contained in:
@@ -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!
|
||||
|
@@ -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 {
|
||||
|
Reference in New Issue
Block a user