You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to request the ability to access resolver info within Modus functions, similar to how GraphQL resolvers get an info parameter. Can someone confirm if this is something we could add to Modus?
Use Cases
Query Optimization: Build database queries based on requested fields
Authentication: Field-level authorization and access control
Root-Level Query Building: Optimize joins and prevent N+1 queries
Plugin Development: Enable Text-to-GraphQL and schema-aware tooling
Operation Analysis: Access operation type and name for metrics/logging
Implementation Examples
Query Optimization
exportfunctiongetMovies(info: ResolverInfo): Movie[]{constrequestedFields=info.fieldNodes[0].selectionSet.selections;constquery=` MATCH (m:Movie) RETURN m.${requestedFields.map(f=>f.name.value).join(', m.')} `;returnexecuteQuery(query);}
Hi team,
I wanted to request the ability to access resolver info within Modus functions, similar to how GraphQL resolvers get an
info
parameter. Can someone confirm if this is something we could add to Modus?Use Cases
Implementation Examples
Query Optimization
Authentication Patterns
Text-to-GraphQL Plugins
Go Implementation
Tools using Resolve info
There are plenty of tools out there that use the resolve info, here is a list for inspiration:
The text was updated successfully, but these errors were encountered: