improving graphql defs, refactoring graphql defs

This commit is contained in:
2020-12-22 18:17:02 +01:00
parent f39079c616
commit 5deb568786
3 changed files with 425 additions and 155 deletions

View File

@@ -15,8 +15,8 @@ type Materiau {
thesaurus: [Thesaurus]
memo: String
attachments: [Filefield]
# distributor:
# manufacturer:
distributor: [Company]
manufacturer: [Company]
# famille:
# index:
# reference:
@@ -69,6 +69,21 @@ type Showroom {
# phone: String
}
type Company {
id: Int!
uuid: String!
name: String!
attachments: [Filefield]
memo: String
note: Int
website: Link
departement: String
email: String
address: Address
# infos
# phone
}
type Tag {
id: Int!
uuid: String!
@@ -81,6 +96,23 @@ type Thesaurus {
name: String!
}
type Address {
langcode: String
country_code: String
administrative_area: String
locality: String
dependent_locality: String
postal_code: String
sorting_code: String
address_line1: String
address_line2: String
organization: String
given_name: String
additional_name: String
family_name: String
}
type Date {
start: String
end: String

View File

@@ -17,3 +17,7 @@ extend type Query {
extend type Query {
thesaurus(id: Int!): Thesaurus
}
extend type Query {
company(id: Int!): Company
}