Inhaltsverzeichnis
3.2 Query GraphQL
Esempi per diversi tipi di query.
Tutti i Campi
{
customers {
id
name
country
email
phone
}
}
Con Limite
{
customers(first: 10, skip: 0) {
id
name
}
}
Con Filtro
{
customers(filter: "Country eq 'Germany'") {
id
name
city
}
}
Singolo Record
{
customersById(id: "ALFKI") {
id
name
orders {
id
orderDate
total
}
}
}
Ordinamento
{
products(orderBy: "Price desc", first: 5) {
id
name
price
}
}
Zuletzt geändert: il 29/01/2026 alle 23:29