graphql Article donne

This commit is contained in:
2020-12-16 16:53:07 +01:00
parent 2739df96e2
commit 1dcd627cab
3 changed files with 183 additions and 21 deletions

View File

@@ -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

View File

@@ -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
}