Ir al contenido

GraphQL API Fetch Multiple Model Data in Odoo 

Configure GraphQL


Configure API With GraphQL Protocol, and Publish it.

 

GraphQL Query


before making API calls please make sure you have provided correct authentication parameter.

Provide GraphQL Query as per your requirement considering below example. in this example we have given multiple models such as SaleOrder and ResPartner

query MyQuery {
    SaleOrder {
        id
        name
    }
    ResPartner {
        id
        name
    }
}

Here you will get multiple model data in single query which has SaleOrder and ResPartner.