graphql Article donne
This commit is contained in:
@@ -19,23 +19,44 @@ type Article {
|
||||
linked_materials: [Materiau]
|
||||
images: [Image]
|
||||
videos: [VideoLink]
|
||||
# date: [String]
|
||||
# showroom: [Showroom]
|
||||
# source: Link
|
||||
# tags: []
|
||||
# thesaurus: []
|
||||
source: Link
|
||||
showroom: Showroom
|
||||
tags: [Tag]
|
||||
thesaurus: [Thesaurus]
|
||||
date: Date
|
||||
}
|
||||
|
||||
# type Showroom {
|
||||
# id: Int!
|
||||
# uuid: String!
|
||||
# }
|
||||
#
|
||||
#
|
||||
# type Link {
|
||||
# url: String!
|
||||
# title: String
|
||||
# }
|
||||
type Link {
|
||||
url: String
|
||||
title: String
|
||||
}
|
||||
|
||||
type Showroom {
|
||||
id: Int!
|
||||
uuid: String!
|
||||
name: String!
|
||||
images: [Image]
|
||||
# email: String
|
||||
# address: Adress
|
||||
# phone: String
|
||||
}
|
||||
|
||||
type Tag {
|
||||
id: Int!
|
||||
uuid: String!
|
||||
name: String!
|
||||
}
|
||||
|
||||
type Thesaurus {
|
||||
id: Int!
|
||||
uuid: String!
|
||||
name: String!
|
||||
}
|
||||
|
||||
type Date {
|
||||
start: String
|
||||
end: String
|
||||
}
|
||||
|
||||
type VideoLink {
|
||||
url: String
|
||||
|
@@ -5,3 +5,15 @@ extend type Query {
|
||||
extend type Query {
|
||||
article(id: Int!): Article
|
||||
}
|
||||
|
||||
extend type Query {
|
||||
showroom(id: Int!): Showroom
|
||||
}
|
||||
|
||||
extend type Query {
|
||||
tag(id: Int!): Tag
|
||||
}
|
||||
|
||||
extend type Query {
|
||||
thesaurus(id: Int!): Thesaurus
|
||||
}
|
||||
|
Reference in New Issue
Block a user