Skip to content

Is there a way to dynamically retrieve all attributes without querying all products? #892

Open
@mfa56

Description

@mfa56

Hello,

I'm currently working on an integration using WPGraphQL and WooCommerce, and I was wondering if there’s an efficient way to retrieve all product attributes dynamically without knowing their names beforehand and without querying every product in the store.

The goal is to get a list of all possible attributes, but querying each product to extract them seems inefficient for larger stores. Is there a recommended method or an existing query for fetching all available attributes globally?

Thank you for your insights and assistance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting author responseAwaiting response from Issue/PR authorquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions