Closes: #19338 - GraphQL: Adds in_list lookups for id and enum fields #857

Closed
opened 2026-04-05 18:12:50 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @bctiemann on 11/19/2025

Closes: #19338

Breaking change. Adds exact: and in_list: and is_null: semantics to GraphQL queries for id fields and enum field types, which also means that bare values are no longer supported.

This means the following queries are valid:

{
    location_list( filters: {
        status: {exact: STATUS_PLANNED},
        OR: {status: {exact: STATUS_STAGING}}
    }) {
        id site {id}
    }
}
{
    location_list( filters: {
        status: {in_list: [STATUS_PLANNED, STATUS_STAGING]}
    }) {
        id site {id}
    }
}

However the following (which worked previously) is not:

{
    location_list( filters: {
        status: STATUS_PLANNED,
        OR: {status: STATUS_STAGING}
    }) {
        id site {id}
    }
}
*Originally created by @bctiemann on 11/19/2025* ### Closes: #19338 **Breaking change.** Adds `exact:` and `in_list:` and `is_null:` semantics to GraphQL queries for `id` fields and enum field types, which also means that bare values are no longer supported. This means the following queries are valid: ``` { location_list( filters: { status: {exact: STATUS_PLANNED}, OR: {status: {exact: STATUS_STAGING}} }) { id site {id} } } ``` ``` { location_list( filters: { status: {in_list: [STATUS_PLANNED, STATUS_STAGING]} }) { id site {id} } } ``` However the following (which worked previously) is not: ``` { location_list( filters: { status: STATUS_PLANNED, OR: {status: STATUS_STAGING} }) { id site {id} } } ```
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/netbox#857