improving graphql defs, refactoring graphql defs
This commit is contained in:
@@ -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
|
||||
|
@@ -17,3 +17,7 @@ extend type Query {
|
||||
extend type Query {
|
||||
thesaurus(id: Int!): Thesaurus
|
||||
}
|
||||
|
||||
extend type Query {
|
||||
company(id: Int!): Company
|
||||
}
|
||||
|
Reference in New Issue
Block a user