Importing Fields Macro
Explore how to improve schema organization in Absinthe by using the import_fields macro. Understand how to break down a large root query into smaller, manageable field groups for cleaner and scalable GraphQL API development.
We'll cover the following...
We'll cover the following...
Importing fields
To support breaking up a large object, Absinthe provides another macro, import_fields, that we can use. In our hypothetical future for PlateSlate, let’s say our root query object type has fields that provide the following:
- Information about menu items.