Closed yazdipour closed 4 months ago
This pull request addresses issue #29 by updating the GraphQL schema to use a fragment for the Search query, improving reusability and maintainability. It also adds support for including content in the get_article method and updates the corresponding tests to verify this functionality. Additionally, a minor fix was made to the README.md file to correct a duplicated header.
Files | Changes |
---|---|
omnivoreql/queries/Search.graphql omnivoreql/omnivoreql.py |
Updated the Search query to use a fragment for better reusability and added support for including content in the get_article method. |
tests/test_omnivoreql.py omnivoreql/omnivoreql.py |
Enhanced the test_get_articles test to verify the inclusion of content and updated the get_article method to support the new include_content parameter. |
Closes #29
Summary by Sourcery
This pull request updates the GraphQL schema to use a new fragment for search results, adds an optional parameter to fetch article content, fixes a minor README formatting issue, and enhances the test coverage for article fetching.