Example GraphQL queries for Suppliers
Less than to read
Query active suppliers
{
x3MasterData {
supplier {
query(filter: "{isActive: true}") {
edges {
node {
code{
code
}
companyName1
shortCompanyName
isActive
addressByDefault{
code
description
}
location
}
}
}
}
}
}
Read supplier with its code and address
{ x3MasterData {
supplier {
query(filter: "{code : 'AE022', addressByDefault : 'A01'}") {
edges {
node {
code{
code
}
companyName1
shortCompanyName
isActive
addressByDefault{
code
description
}
location
}
}
}
}
}
}