-
Notifications
You must be signed in to change notification settings - Fork 124
Custom Queries Development Pattern
E. Lynette Rayle edited this page Mar 8, 2022
·
4 revisions
Custom Queries are extensions to standard Valkyrie Queries.
Reference: Custom Queries (Valkyrie documentation)
code location | what happens there |
---|---|
lib/wings/setup.rb |
register custom queries in the wings metadata adapter (look for register_query_handler ) |
spec/spec_helper.rb |
register custom queries in other metadata adapters used for testing (look for register_query_handler ) |
`app/services/custom_queries/navigators/* | defines custom queries that help with navigating from one object in the model to a related object. These are non-adapter specific and should work with all metadata adapters. |
`app/services/custom_queries/* | defines additional custom queries. These are non-adapter specific and should work with all metadata adapters. |
`lib/wings/services/custom_queries/* | defines custom queries that are optimized for wings adapter |