Skip to content

Commit

Permalink
feat: Refactor GraphQL adapter to allow more agent dynamism (#337)
Browse files Browse the repository at this point in the history
* feat: Refactor GraphQL adapter to allow more agent dynamism

- Removed introspection-based schema handling in favor of direct schema string parsing using `printSchema`.
- Introduced `parseGraphQLSchema` function to extract queries, mutations, and types from the schema.
- Updated service registration to utilize the new parsing logic, improving the handling of GraphQL operations.
- Added new utility functions for peeking at the schema and looking up types.
- Created tests for the new parser functionality and added a sample GraphQL schema for testing.
- Enhanced error handling and input validation for service functions.

* chore: Update GraphQL adapter dependencies and version
  • Loading branch information
nadeesha authored Dec 19, 2024
1 parent ffe7c91 commit 71d575b
Show file tree
Hide file tree
Showing 7 changed files with 67,544 additions and 242 deletions.
Loading

0 comments on commit 71d575b

Please sign in to comment.